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

# Create a crypto top-up

> Returns an address and the exact coin amount to send. Credits are added to the key owner's account once the network confirms the transfer. Poll GET /v1/top-ups/{id} until status is paid.



## OpenAPI

````yaml /openapi.json post /v1/top-ups
openapi: 3.1.0
info:
  title: Refuseless API
  version: 1.0.0
  description: >-
    OpenAI-compatible hosted inference for a named lineup of refusal-removed
    open weights.
servers:
  - url: https://api.refuseless.com
security:
  - bearerAuth: []
paths:
  /v1/top-ups:
    post:
      tags:
        - Top-ups
      summary: Create a crypto top-up
      description: >-
        Returns an address and the exact coin amount to send. Credits are added
        to the key owner's account once the network confirms the transfer. Poll
        GET /v1/top-ups/{id} until status is paid.
      operationId: createTopUp
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Up to 200 characters. A retry with the same key returns the same
            top-up.
          schema:
            type: string
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopUpRequest'
      responses:
        '200':
          description: 'Retry with an Idempotency-Key already used: the same top-up'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUp'
        '201':
          description: Top-up created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUp'
        '400':
          description: invalid_amount, amount_below_minimum, invalid_method or bad_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: The account cannot top up (account_suspended, email_unverified, ...)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: >-
            Idempotency-Key reused with another amount or method
            (idempotency_conflict)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: too_many_open_top_ups or rate_limit_exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: >-
            The payment provider refused to open the payment
            (payment_gateway_error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: >-
            Crypto payments unavailable (crypto_unavailable) or billing
            unreachable (gateway_down)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    TopUpRequest:
      type: object
      properties:
        amount:
          type: number
          minimum: 5
          maximum: 10000
          example: 50
          description: >-
            US dollars to add, at most 2 decimals, at least the method's
            min_amount.
        method:
          type: string
          example: usdt-tron
          description: A method id from GET /v1/top-ups/methods.
      required:
        - amount
        - method
    TopUp:
      type: object
      properties:
        object:
          type: string
          enum:
            - top_up
        id:
          type: string
          example: tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1
        status:
          type: string
          enum:
            - pending
            - confirming
            - paid
            - underpaid
            - expired
            - failed
            - refunded
          description: paid means credited.
        amount:
          type: number
          example: 50
          description: US dollars credited when paid.
        bonus:
          type: number
          example: 0
          description: Bonus credits added with this top-up, in US dollars.
        method:
          type: string
          example: usdt-tron
        currency:
          type: string
          example: USDT
        network:
          type: string
          example: Tron
        address:
          type: string
          description: Where to send the coin.
        memo:
          type:
            - string
            - 'null'
          description: Memo or destination tag to include, when the coin needs one.
        pay_amount:
          type: string
          example: '50.12'
          description: Exact amount of currency to send.
        paid_amount:
          type:
            - string
            - 'null'
          description: Coin received so far.
        remaining_amount:
          type:
            - string
            - 'null'
          description: Coin still owed when less than pay_amount arrived.
        created_at:
          type: integer
        expires_at:
          type:
            - integer
            - 'null'
          description: Unix seconds. Send before then.
        paid_at:
          type:
            - integer
            - 'null'
          description: Unix seconds when credits were added.
      required:
        - object
        - id
        - status
        - amount
        - method
        - currency
        - network
        - address
        - pay_amount
        - created_at
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - type
          properties:
            code:
              type: string
              examples:
                - invalid_key
                - key_revoked
                - key_expired
                - insufficient_credits
                - key_budget_exceeded
                - key_daily_budget_exceeded
                - rate_limit_exceeded
                - model_not_found
                - model_busy
                - model_warming
                - upstream_error
                - model_unavailable
            message:
              type: string
            type:
              type: string
              examples:
                - api_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: YOUR_API_KEY

````

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