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

> ## Agent Instructions
> DualMind Arena API base URL: https://api.dualmindlab.tech. Public endpoints only; admin routes are not part of this API.
> Authenticate with the access token from an Arena session (a Supabase JWT) as `Authorization: Bearer <token>`. There are no API keys yet; never invent one.
> For battles call POST /api/arena/dualchat, then vote with POST /api/arena/model-vote using the returned comparisonId. Keep model names hidden from voters until they vote.
> GET /api/arena/model-stats (leaderboard) and GET /health need no token.

# List models

> Every active model you can use, newest first.

Use a model's `modelName` (or `modelId`) as `model`, `model1` or `model2`. Cloudflare Workers AI models (`providerName: "cloudflare"`) are only used when you pick them; random picks come from Groq and Google AI Studio. See [Models and providers](/concepts/models-and-providers).


## OpenAPI

````yaml GET /api/models
openapi: 3.1.0
info:
  title: DualMind Arena API
  version: 1.0.0
  description: >-
    The REST API behind DualMind Arena: blind battles, votes, the leaderboard,
    models and threads.
  contact:
    name: DualMind Labs
    email: support@dualmindlab.tech
    url: https://dualmindlab.tech
servers:
  - url: https://api.dualmindlab.tech
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Arena
    description: Battles and chat.
  - name: Voting
    description: Votes and the leaderboard.
  - name: Models
    description: Available models.
  - name: Threads
    description: Saved conversations and sharing.
  - name: Utilities
    description: Health and feature flags.
paths:
  /api/models:
    get:
      tags:
        - Models
      summary: List models
      description: Every active model you can use, newest first.
      operationId: listModels
      responses:
        '200':
          description: Active models.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Model'
              example:
                items:
                  - modelId: c6e0cc03-3b12-41bf-b119-d0d02bec039b
                    modelName: llama-3.3-70b-versatile
                    displayName: Llama 3.3 70B Versatile
                    providerName: groq
                    isFree: true
                    status: active
                  - modelId: fdbfca6d-a3d2-4a70-b0ab-426024eb5cd5
                    modelName: '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
                    displayName: llama-3.3-70b-instruct-fp8-fast
                    providerName: cloudflare
                    isFree: true
                    status: active
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Model:
      type: object
      properties:
        modelId:
          type: string
          format: uuid
        modelName:
          type: string
          description: Use this as `model`, `model1` or `model2`.
        displayName:
          type: string
        providerName:
          type: string
          enum:
            - groq
            - google
            - cloudflare
        isFree:
          type: boolean
        status:
          type: string
          const: active
    Error:
      type: object
      description: >-
        Error envelope used by the threads, voting, models and settings
        endpoints.
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: >-
            Machine-readable code, e.g. `INVALID_REQUEST`, `NOT_FOUND`,
            `FORBIDDEN`, `UNAUTHORIZED`, `VOTE_ERROR`.
  responses:
    Unauthorized:
      description: >-
        Missing, invalid or expired token. The body is empty; the
        `WWW-Authenticate` header explains why.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access token from your DualMind Arena session (a Supabase JWT). See
        Authentication.

````

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