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

# List Models

> Return the list of models available to your API key.

Use this endpoint to discover exactly which model IDs your key can access before sending chat or embeddings requests.

## Base URL

`https://api.dottxt.ai/v1`

## Practical request pattern

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl https://api.dottxt.ai/v1/models \
  -H "Authorization: Bearer $DOTTXT_API_KEY"
```

## Example response shape

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-oss-20b",
      "object": "model"
    }
  ]
}
```

## Notes

* Use `data[].id` directly in `model` for [`POST /chat/completions`](/api/chat-completions).
* If auth is missing or invalid, this endpoint returns `401`.


## OpenAPI

````yaml ../openapi/dottxt-openapi.json GET /models
openapi: 3.1.0
info:
  title: dottxt API
  description: The dottxt API
  version: 1.0.0
servers:
  - url: https://api.dottxt.ai/v1
    description: dottxt API
security: []
tags:
  - name: files
    description: >-
      Upload and manage JSONL files for batch processing.


      Each line in the file should be a JSON object with:

      - `custom_id` - your identifier for tracking the request

      - `method` - HTTP method (POST)

      - `url` - endpoint path (e.g., `/v1/chat/completions`)

      - `body` - the request payload


      [Learn more about the JSONL file format
      →](https://docs.doubleword.ai/batches/jsonl-files)
  - name: batches
    description: >-
      Process large volumes of requests asynchronously.


      Batch processing is ideal when you:

      - Have many requests that don't need immediate responses

      - Want to process data in bulk (e.g., embeddings for a document corpus)

      - Are running offline evaluations or data pipelines


      Choose your completion window: 1 hour or 24 hours. You can track progress,
      cancel in-flight batches, and retry failed requests.


      [Getting started with the Batch API
      →](https://docs.doubleword.ai/batches/getting-started-with-batched-api)
  - name: chat
    description: |-
      Create model responses for chat conversations.

      Supports:
      - **Multi-turn dialogue** with conversation history
      - **System prompts** to control model behavior
      - **Tool calling** for function execution and structured outputs
      - **Streaming** for real-time token delivery
      - **Sampling parameters** like temperature, top_p, and frequency penalties
  - name: embeddings
    description: |-
      Generate vector representations of text.

      Use embeddings for:
      - **Semantic search** - find content by meaning, not just keywords
      - **Clustering** - group similar documents together
      - **Classification** - categorize text based on similarity to examples
      - **Recommendations** - suggest related content
  - name: models
    description: >-
      List and retrieve information about available models.


      Use these endpoints to discover which models you have access to and their
      capabilities.
  - name: responses-api
    description: >-
      Create model responses with enhanced capabilities.


      Open Responses compatible endpoint providing advanced features:


      - **Reasoning models** - Control computational effort with `reasoning`
      parameter

      - **Stateful conversations** - Maintain context across turns with
      `previous_response_id`

      - **Flexible input** - Use simple strings or full message arrays

      - **Text output configuration** - Structured outputs via `text` parameter

      - **Context management** - Handle overflow with `truncation` parameter


      [Open Responses API Reference →](https://www.openresponses.org/reference)
paths:
  /models:
    get:
      tags:
        - models
      summary: List models
      description: >-
        Lists the models available to your API key.


        The response includes model IDs that can be used in chat completion and
        embedding requests.
      operationId: list_models
      responses:
        '200':
          description: List of models your API key can access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsListResponse'
        '401':
          description: >-
            Invalid or missing API key. Ensure your `Authorization` header is
            set to `Bearer YOUR_API_KEY`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ModelsListResponse:
      type: object
      description: Response for listing available models.
      required:
        - object
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelObject'
          description: The list of available models.
        object:
          type: string
          description: The object type, always "list".
          example: list
      example:
        data:
          - created: 1703187200
            id: Qwen/Qwen3-30B-A3B-FP8
            object: model
            owned_by: qwen
        object: list
    OpenAIErrorResponse:
      type: object
      description: OpenAI-compatible error response.
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/OpenAIError'
          description: The error details.
      example:
        error:
          code: invalid_api_key
          message: Invalid API key provided
          type: authentication_error
    ModelObject:
      type: object
      description: A model object.
      required:
        - id
        - object
        - created
        - owned_by
      properties:
        created:
          type: integer
          format: int64
          description: The Unix timestamp of when the model was created.
          example: 1703187200
        id:
          type: string
          description: The model identifier.
          example: Qwen/Qwen3-30B-A3B-FP8
        object:
          type: string
          description: The object type, always "model".
          example: model
        owned_by:
          type: string
          description: The organization that owns the model.
          example: qwen
      example:
        created: 1703187200
        id: Qwen/Qwen3-30B-A3B-FP8
        object: model
        owned_by: qwen
    OpenAIError:
      type: object
      description: OpenAI-compatible error details.
      required:
        - message
        - type
      properties:
        code:
          type:
            - string
            - 'null'
          description: The error code.
          example: invalid_api_key
        message:
          type: string
          description: The error message.
          example: Invalid API key provided
        param:
          type:
            - string
            - 'null'
          description: The parameter that caused the error, if applicable.
        type:
          type: string
          description: The type of error.
          example: authentication_error
      example:
        code: invalid_api_key
        message: Invalid API key provided
        type: authentication_error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |-
        API key authentication. Include your key in the `Authorization` header:

        ```
        Authorization: Bearer YOUR_API_KEY
        ```

        API keys can be created and managed in the dashboard.

````