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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Retrieve a model

> Returns one model this API key can call, by id or alias, with its type and the routes it serves.

<!-- aisa-pricing:start -->
A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->

## Request contract

* **Method and path:** GET /v1/models/\{model}
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/v1/models/{model}`
* **model:** path; required
* **Runtime facts:** 91bf641454e0de177731cf163176d280d129e69966cbcc50fec1085b586240bc

[Complete OpenAPI definition](https://aisa.one/docs/openapi/media-generation.json)

Effective request and pricing declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "retrieveModel",
  "method": "GET",
  "path": "/v1/models/{model}",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "A model id or alias.",
      "in": "path",
      "name": "model",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "x-aisa-pricing": {
    "description": "Reading the model catalog is free.",
    "kind": "no_customer_charge"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ.

Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.


## OpenAPI

````yaml openapi/media-generation.json GET /v1/models/{model}
openapi: 3.1.0
info:
  description: >-
    Image and video generation on AIsa models. The model field selects the
    model; GET /v1/models lists the enabled image and video models and the
    routes each one serves.
  title: Media Generation
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    media-generation:
      description: >-
        Image and video generation on AIsa models. The model field selects the
        model; GET /v1/models lists the enabled image and video models and the
        routes each one serves.
      title: Media Generation
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 91bf641454e0de177731cf163176d280d129e69966cbcc50fec1085b586240bc
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /v1/images/generations
    - /v1/models
    - /v1/models/{model}
    - /v1/video/generations
    - /v1/video/generations/{task_id}
  x-aisa-document:
    composer_version: '26'
    document_hash: sha256:d416f1261f857192081b8528f5b59209eede827a0dcc0b58f5a0e65360d9a8ac
    facts_hash: 91bf641454e0de177731cf163176d280d129e69966cbcc50fec1085b586240bc
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: media-generation
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /v1/models/{model}:
    get:
      summary: Retrieve a model
      description: >-
        Returns one model this API key can call, by id or alias, with its type
        and the routes it serves.


        <!-- aisa-pricing:start -->

        A request reference price is not currently available; use a request
        quote where supported. Account-specific pricing and final settlement may
        differ.

        <!-- aisa-pricing:end -->
      operationId: retrieveModel
      parameters:
        - description: A model id or alias.
          in: path
          name: model
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  aisa:
                    properties:
                      capabilities:
                        items:
                          type: string
                        type: array
                      display_name:
                        type: string
                      model_type:
                        description: text, image, video or embedding.
                        type: string
                      preferred_route:
                        description: The key of the route to use by default.
                        type: string
                      routes:
                        items:
                          properties:
                            key:
                              description: >-
                                Route key, for example image-generation or
                                video-generation.
                              type: string
                            method:
                              type: string
                            path:
                              description: The public path to call with this model.
                              type: string
                            preferred:
                              type: boolean
                          required:
                            - key
                            - path
                            - method
                          type: object
                        type: array
                    required:
                      - display_name
                      - capabilities
                      - model_type
                      - routes
                    type: object
                  created:
                    description: Unix seconds.
                    type: integer
                  id:
                    description: The model name to send as model.
                    type: string
                  object:
                    const: model
                    type: string
                  owned_by:
                    type: string
                  recharge_required:
                    description: Whether calling it requires a paid balance.
                    type: boolean
                required:
                  - id
                  - object
                  - created
                  - owned_by
                  - recharge_required
                  - aisa
                type: object
          description: The model.
        '404':
          description: No such model, or it has no route this API key can use.
        default:
          description: >-
            Validation, authentication, balance or provider error. Provider
            refusals, such as content checks, keep their 4xx status.
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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