Auxen Inference API

The Inference API from Auxen — 2 operation(s) for inference.

Operations 2

POST /v1/{deploymentId}/chat Inference (Auxen-native) #
POST /v1/{deploymentId}/v1/chat/completions Inference (OpenAI-compatible) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/auxen-ai:auxen-ai-inference-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

auxen-ai-inference-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Auxen Headless Inference API
  version: 1.3.0
  description: 'Programmatic API for Auxen: hire and manage AI workers (`/v1/workers`,

    `/v1/connections`, approvals; also over MCP and A2A), and deploy and

    manage private open-weight model endpoints. Anything a human can do in

    the dashboard, an agent can do via this API.


    **Two key types:**

    - `auxen_live_…` / `auxen_test_…` — your account-level **agent management**

    key. Authorizes deploying, switching models, and billing operations.

    - `auxk_…` — a per-deployment **inference** key returned in the `api_key`

    field of every deployment object. Authorizes inference calls on that

    deployment only. Hand it to downstream services without giving up

    management rights.


    **Billing:**

    All Auxen deployments are billed **pay-as-you-go** from a prepaid USD credit

    balance, per minute of active time; billing stops when a deployment is

    paused or deleted. Throughput levels (Standard, Double, Quad, Max)

    increase simultaneous request handling at the same model quality. Top up

    the balance with `POST /v1/billing/add-credits`.


    **2026 renames:** `/v1/provision` → `/v1/deploy`, `/v1/instances` →

    `/v1/deployments`, `/scale` → `/throughput`, `/wake` → `/resume`.

    Old routes keep working until 2027-04-02 and send `Deprecation`,

    `Sunset`, and `Link` headers. Responses carry new and old field names

    side by side (`deployment_id` + `instance_id`, `throughput` +

    `capacity`, `rate_per_hour` + `hourly_rate`, `ready_estimate` +

    `estimated_ready_at`). Migration guide: https://auxen.ai/docs/api/migration'
  contact:
    email: hello@auxen.ai
    url: https://auxen.ai/contact
servers:
- url: https://api.auxen.ai
  description: Production
tags:
- name: Inference
paths:
  /v1/{deploymentId}/chat:
    post:
      summary: Inference (Auxen-native)
      tags:
      - Inference
      security:
      - DeploymentKey: []
      parameters:
      - name: deploymentId
        in: path
        required: true
        schema:
          type: string
          pattern: ^inst_[0-9a-f]+$
        example: inst_07d7eab4fabc
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - message
              properties:
                message:
                  type: string
                  example: Hello!
                system:
                  type: string
                history:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        enum:
                        - user
                        - assistant
                        - system
                      content:
                        type: string
                stream:
                  type: boolean
                  default: false
                options:
                  type: object
                  properties:
                    temperature:
                      type: number
                    num_predict:
                      type: integer
      responses:
        '200':
          description: OK (non-streaming)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                      model:
                        type: string
                      usage:
                        type: object
                        properties:
                          prompt_tokens:
                            type: integer
                          completion_tokens:
                            type: integer
                          total_tokens:
                            type: integer
                      response_time_ms:
                        type: integer
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                - success
                - data
                - meta
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: Deployment not ready yet — poll until status is ready.
      operationId: postV1ByDeploymentIdChat
      x-operation-id-source: derived
  /v1/{deploymentId}/v1/chat/completions:
    post:
      summary: Inference (OpenAI-compatible)
      description: 'Drop-in replacement for `POST https://api.openai.com/v1/chat/completions`. Point any OpenAI SDK at `https://api.auxen.ai/v1/{deploymentId}/v1` as the base URL and use the deployment''s `auxk_` key — no other code changes required. Supports streaming via `stream: true`.'
      tags:
      - Inference
      security:
      - DeploymentKey: []
      parameters:
      - name: deploymentId
        in: path
        required: true
        schema:
          type: string
          pattern: ^inst_[0-9a-f]+$
        example: inst_07d7eab4fabc
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - messages
              properties:
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        enum:
                        - user
                        - assistant
                        - system
                      content:
                        type: string
                stream:
                  type: boolean
                temperature:
                  type: number
                max_tokens:
                  type: integer
                top_p:
                  type: number
                seed:
                  type: integer
      responses:
        '200':
          description: Standard OpenAI chat.completion envelope.
      operationId: postV1ByDeploymentIdV1ChatCompletions
      x-operation-id-source: derived
components:
  schemas:
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_abcdef0123456789
        timestamp:
          type: string
          format: date-time
    Error401:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
              example: DEPLOYMENT_NOT_FOUND
            message:
              type: string
            docs:
              type: string
              format: uri
            legacy_code:
              type: string
              description: 'On /v1/deployments/* routes: the pre-2026 name of a renamed code (e.g. INSTANCE_NOT_FOUND). Present until 2027-04-02.'
            renamed_to:
              type: string
              description: 'On deprecated routes: the new name of a renamed code (e.g. DEPLOYMENT_NOT_FOUND).'
          required:
          - code
          - message
          - docs
        meta:
          $ref: '#/components/schemas/Meta'
      required:
      - success
      - error
      - meta
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error401'
  securitySchemes:
    AgentKey:
      type: http
      scheme: bearer
      bearerFormat: auxen_live_xxx | auxen_test_xxx
      description: Account-level key. Generate at /dashboard/api-keys.
    DeploymentKey:
      type: http
      scheme: bearer
      bearerFormat: auxk_xxx
      description: Per-deployment key from the `api_key` field of a deployment object.