> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fanifyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account

> Returns your account details and available credit balance.



## OpenAPI

````yaml /hub/openapi/hub.json get /api/v1/me
openapi: 3.0.1
info:
  title: Fanify Hub API
  description: Generate media and text with Fanify credits. All prices use EUR.
  version: v1
servers:
  - url: https://fanifyai.com
security: []
paths:
  /api/v1/me:
    get:
      tags:
        - Account
      summary: Get account
      description: Returns your account details and available credit balance.
      responses:
        '200':
          description: Caller account and balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HubMeDto'
              example:
                client_id: 42
                email: client@example.com
                membership: true
                balance: 4.9521
                available: 4.9121
                currency: EUR
                key:
                  name: Instance ABCD-EFGH-IJKL-MNOP-QRST
                  prefix: fanify_sk_a1B2c3D4
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - unauthorized
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
              example:
                type: https://fanifyai.com/docs/hub/errors#unauthorized
                title: Unauthorized
                status: 401
                code: unauthorized
        '429':
          description: Rate limit reached
          headers:
            Retry-After:
              description: Seconds before retrying.
              schema:
                type: string
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - rate_limited
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
              example:
                type: https://fanifyai.com/docs/hub/errors#rate_limited
                title: Rate limit reached
                status: 429
                code: rate_limited
      security:
        - Bearer: []
components:
  schemas:
    HubMeDto:
      required:
        - available
        - balance
        - client_id
        - currency
        - email
        - key
        - membership
      type: object
      properties:
        client_id:
          type: integer
          format: int32
        email:
          type: string
        membership:
          type: boolean
        balance:
          type: number
          format: double
        available:
          type: number
          format: double
        currency:
          enum:
            - EUR
          type: string
        key:
          allOf:
            - $ref: '#/components/schemas/HubMeKeyDto'
          nullable: true
      additionalProperties: false
    HubMeKeyDto:
      required:
        - name
        - prefix
      type: object
      properties:
        name:
          type: string
        prefix:
          type: string
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: http
      description: Fanify API key.
      scheme: bearer
      bearerFormat: fanify_sk_...

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.