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

# MiniMax Messages API reference

> - Anthropic Messages. Select the model with `model`.
- Request and response structures follow the Anthropic API
- `MiniMax-M4`, `MiniMax-M3.1-Flash` and `MiniMax-M3` accept images and video. `MiniMax-M2.5` accepts text only.
- **System prompts**: use the top-level `system` field
- `MiniMax-M4` and `MiniMax-M3.1-Flash` always use reasoning and return it as `content[type=thinking]` blocks. `MiniMax-M3` skips reasoning by default. Set `thinking` to `{"type": "adaptive"}` to enable it and receive a `thinking` block. `MiniMax-M2.5` reasons without returning a `thinking` block. Its reasoning tokens count towards `output_tokens`.
- **Streaming**: SSE events
- **Tool calling**: Anthropic `tool_use` / `tool_result` flow. `MiniMax-M2.5` does not support tools on this endpoint. Use [Chat Completions](/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference) for tool calls.

**Streaming events**: `message_start` → `content_block_start` → `content_block_delta` (`thinking_delta` / `signature_delta` / `text_delta` / `input_json_delta`) → `content_block_stop` → `message_delta` → `message_stop`. `ping` events may appear between these events. Use the `usage` in the `message_delta` event for final token counts.

> [!NOTE]
>
> **BaseURL**: The default BaseURL is `https://direct.evolink.ai`, which has better support for text models and long-lived connections. `https://api.evolink.ai` is the primary endpoint for multimodal services and serves as a fallback address for text models.

> [!NOTE]
>
> `MiniMax-M4` and `MiniMax-M3.1-Flash` always reason. Set `output_config.effort` to `low`, `medium`, `high`, `xhigh` or `max` (default). Setting `thinking.type` to `disabled` or `effort` to `none` returns HTTP 400. `MiniMax-M3` skips reasoning by default. Set `thinking` to `{"type": "adaptive"}` to enable it and receive a `thinking` block. `MiniMax-M2.5` reasons without returning a `thinking` block. Its reasoning tokens count towards `output_tokens`.

> [!NOTE]
>
> **Maximum output (including reasoning tokens)** — `MiniMax-M4` 262,144, `MiniMax-M3.1-Flash` 524,288, `MiniMax-M3` 524,288, `MiniMax-M2.5` 32,768.

> [!NOTE]
>
> `MiniMax-M2.5` accepts text only and generates up to 32,768 tokens. `MiniMax-M2.5` does not support tools on this endpoint. Use [Chat Completions](https://evolink.ai/docs/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference.md) for tool calls.


## OpenAPI

````yaml en/api-manual/language-series/minimax/messages/messages-reference.json POST /v1/messages
openapi: 3.1.0
info:
  title: MiniMax Messages API reference
  description: >-
    `POST /v1/messages` (Anthropic Messages). Select the model with `model`.
    `MiniMax-M4`, `MiniMax-M3.1-Flash` and `MiniMax-M3` accept images and video.
    `MiniMax-M2.5` accepts text only. Required fields: `model`, `max_tokens`,
    `messages`.


    Optional fields include `system`, `temperature`, `top_p`, `stream`,
    `thinking`, `output_config`, `tools` and `tool_choice`. For model-specific
    limits and reasoning controls, see `model`, `thinking`, `output_config` and
    `max_tokens`.


    Omit `cache_control`; this endpoint does not support it. Matching prefixes
    are cached automatically. Cached tokens appear in
    `usage.cache_read_input_tokens` and are billed at the cache-hit rate. Send
    back the complete previous assistant blocks, including `thinking` with its
    `signature` and `tool_use`.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Production (Recommended)
  - url: https://api.evolink.ai
    description: Alternative URL
security:
  - bearerAuth: []
tags:
  - name: Messages
    description: Anthropic Messages protocol endpoints
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: MiniMax Messages API reference (Anthropic-compatible)
      description: >-
        - Anthropic Messages. Select the model with `model`.

        - Request and response structures follow the Anthropic API

        - `MiniMax-M4`, `MiniMax-M3.1-Flash` and `MiniMax-M3` accept images and
        video. `MiniMax-M2.5` accepts text only.

        - **System prompts**: use the top-level `system` field

        - `MiniMax-M4` and `MiniMax-M3.1-Flash` always use reasoning and return
        it as `content[type=thinking]` blocks. `MiniMax-M3` skips reasoning by
        default. Set `thinking` to `{"type": "adaptive"}` to enable it and
        receive a `thinking` block. `MiniMax-M2.5` reasons without returning a
        `thinking` block. Its reasoning tokens count towards `output_tokens`.

        - **Streaming**: SSE events

        - **Tool calling**: Anthropic `tool_use` / `tool_result` flow.
        `MiniMax-M2.5` does not support tools on this endpoint. Use [Chat
        Completions](/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference)
        for tool calls.


        **Streaming events**: `message_start` → `content_block_start` →
        `content_block_delta` (`thinking_delta` / `signature_delta` /
        `text_delta` / `input_json_delta`) → `content_block_stop` →
        `message_delta` → `message_stop`. `ping` events may appear between these
        events. Use the `usage` in the `message_delta` event for final token
        counts.
      operationId: createMessageMiniMax
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageRequest'
            examples:
              simple:
                summary: Minimal runnable request
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content: Hello! How can you help me?
              system_prompt:
                summary: Using system prompts
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  system: >-
                    You are a technical editor. Keep your answers clear and
                    concise.
                  messages:
                    - role: user
                      content: >-
                        Describe the benefits of clear technical documentation
                        in three sentences.
              effort:
                summary: Adjust reasoning depth (output_config.effort)
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  output_config:
                    effort: high
                  messages:
                    - role: user
                      content: >-
                        A bat and a ball cost 1.10 in total. The bat costs 1.00
                        more than the ball. How much does the ball cost?
              image_understanding:
                summary: Image understanding (multimodal content blocks)
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: What is shown in this image?
                        - type: image
                          source:
                            type: url
                            url: https://example.com/image.jpeg
              video_understanding:
                summary: Video understanding (multimodal content blocks)
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: Summarize this video.
                        - type: video
                          source:
                            type: url
                            url: https://example.com/video.mp4
                            fps: 1
              tool_use:
                summary: Tool calling (Anthropic tool_use style)
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content: Check the stock for product demo-item-001.
                  tools:
                    - name: get_product_stock
                      description: Get the current stock level for a product.
                      input_schema:
                        type: object
                        properties:
                          product_id:
                            type: string
                            description: Product identifier.
                        required:
                          - product_id
                  tool_choice:
                    type: auto
              streaming:
                summary: Streaming output (SSE)
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  stream: true
                  messages:
                    - role: user
                      content: Write a short poem about spring.
              m3_thinking:
                summary: Enable reasoning on `MiniMax-M3`
                description: >-
                  `MiniMax-M3` skips reasoning by default. Set `thinking` to
                  `{"type": "adaptive"}` to enable it and receive a `thinking`
                  block.
                value:
                  model: MiniMax-M3
                  max_tokens: 131072
                  thinking:
                    type: adaptive
                  messages:
                    - role: user
                      content: >-
                        A bat and a ball cost 1.10 in total. The bat costs 1.00
                        more than the ball. How much does the ball cost?
              m25_text:
                summary: Call MiniMax-M2.5 (text only)
                description: >-
                  `MiniMax-M2.5` accepts text only and generates up to 32,768
                  tokens. `MiniMax-M2.5` does not support tools on this
                  endpoint. Use [Chat
                  Completions](/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference)
                  for tool calls.
                value:
                  model: MiniMax-M2.5
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain recursion in one sentence.
      responses:
        '200':
          description: Message object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              examples:
                with_thinking:
                  summary: Response with reasoning (thinking block)
                  value:
                    id: example_a9e449
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - thinking: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
                        signature: EXAMPLE_THINKING_SIGNATURE
                        type: thinking
                      - text: '0.05'
                        type: text
                    usage:
                      input_tokens: 55
                      output_tokens: 66
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 174
                      output_tokens_details:
                        thinking_tokens: 63
                    stop_reason: end_turn
                direct_answer:
                  summary: Direct answer without reasoning content
                  value:
                    id: example_ac2b01
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - text: >-
                          Recursion is a technique in which a function calls
                          itself to solve smaller instances of a problem.
                        type: text
                    usage:
                      input_tokens: 23
                      output_tokens: 6
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 184
                    stop_reason: end_turn
                tool_use:
                  summary: Tool call triggered (stop_reason=tool_use)
                  value:
                    id: example_99733d
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - type: tool_use
                        id: call_example_1
                        name: get_product_stock
                        input:
                          product_id: demo-item-001
                    usage:
                      input_tokens: 283
                      output_tokens: 31
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 174
                    stop_reason: tool_use
                m25_answer:
                  summary: Response from `MiniMax-M2.5` (without a `thinking` block)
                  value:
                    id: chatcmpl-example
                    type: message
                    role: assistant
                    content:
                      - type: text
                        text: >-
                          Recursion is a technique in which a function calls
                          itself to solve smaller instances of a problem.
                    stop_reason: end_turn
                    model: MiniMax-M2.5
                    usage:
                      input_tokens: 44
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 0
                      output_tokens: 101
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                request_id: req_xxx
                error:
                  type: invalid_request_error
                  message: Invalid request
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: authentication_error
                  message: Authentication error
        '402':
          description: Insufficient quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: billing_error
                  message: Insufficient quota
        '403':
          description: Permission error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: permission_error
                  message: Permission denied
        '404':
          description: Model or resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: not_found_error
                  message: Model not found
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: rate_limit_error
                  message: Rate limited
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Bad gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateMessageRequest:
      type: object
      required:
        - model
        - messages
        - max_tokens
      properties:
        model:
          type: string
          description: >-
            | Model | Context (tokens) | Maximum output (tokens) |

            | --- | --- | --- |

            | `MiniMax-M4` | 1,000,000 | 262,144 |

            | `MiniMax-M3.1-Flash` | 1,000,000 | 524,288 |

            | `MiniMax-M3` | 1,000,000 | 524,288 |

            | `MiniMax-M2.5` | 204,800 | 32,768 |


            `MiniMax-M4` and `MiniMax-M3.1-Flash` always use reasoning. Adjust
            reasoning depth with `output_config.effort`. `MiniMax-M3` skips
            reasoning by default. Set `thinking` to `{"type": "adaptive"}` to
            enable it and receive a `thinking` block. `MiniMax-M3` and
            `MiniMax-M2.5` cannot change reasoning depth. `MiniMax-M2.5` reasons
            without returning a `thinking` block. Its reasoning tokens count
            towards `output_tokens`. `MiniMax-M4`, `MiniMax-M3.1-Flash` and
            `MiniMax-M3` accept images and video. `MiniMax-M2.5` accepts text
            only. `MiniMax-M2.5` does not support tools on this endpoint. Use
            [Chat
            Completions](/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference)
            for tool calls. Reasoning tokens count towards the output limit and
            are billed at the output rate.
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
            - MiniMax-M3
            - MiniMax-M2.5
          example: MiniMax-M4
        max_tokens:
          type: integer
          description: >-
            Maximum output (including reasoning tokens)


            | Model | Suggested output | Maximum output |

            | --- | --- | --- |

            | `MiniMax-M4` | 131,072 | 262,144 |

            | `MiniMax-M3.1-Flash` | 131,072 | 524,288 |

            | `MiniMax-M3` | 131,072 | 524,288 |

            | `MiniMax-M2.5` | As needed | 32,768 |


            Start with an output budget of at least 1,024 tokens. If reasoning
            uses the entire budget, the response may contain no answer text
            (`stop_reason=max_tokens`).
          minimum: 1
          maximum: 524288
          example: 131072
        messages:
          type: array
          description: |-
            List of conversation messages, alternating user / assistant turns

            **Notes**:
            - Must contain at least 1 message
            - The last message is typically `role=user`
          items:
            $ref: '#/components/schemas/InputMessage'
          minItems: 1
        system:
          description: >-
            System prompt used to set the assistant's role and behavior. Accepts
            a string or an array of text content blocks in the top-level
            `system` field.
          oneOf:
            - type: string
              example: You are a helpful assistant.
            - type: array
              description: System prompt as an array of content blocks.
              items:
                type: object
                required:
                  - type
                  - text
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
        temperature:
          type: number
          description: >-
            `MiniMax-M4`, `MiniMax-M3.1-Flash`, `MiniMax-M3` — Temperature is
            fixed at 1. Other values have no effect. `MiniMax-M2.5` defaults to
            1 and supports adjustment. Lower temperatures favor consistent
            answers. Change only one of `temperature` and `top_p` at a time.
          default: 1
          example: 1
        top_p:
          type: number
          description: >-
            `MiniMax-M4`, `MiniMax-M3.1-Flash`, `MiniMax-M3` — Fixed at 0.95. If
            supplied, use a value in (0, 1]. `MiniMax-M2.5` defaults to 0.95 and
            supports adjustment. Change only one of `temperature` and `top_p` at
            a time.
          exclusiveMinimum: 0
          maximum: 1
          default: 0.95
          example: 0.95
        stream:
          type: boolean
          description: |-
            Whether to return via SSE streaming

            - `true`: Server-Sent Events streaming response
            - `false`: Wait for complete response before returning (default)
          default: false
          example: false
        thinking:
          type: object
          description: >-
            - For `MiniMax-M4` and `MiniMax-M3.1-Flash`, omit `thinking` or set
            its `type` to `adaptive`. `disabled` returns HTTP 400.

            - `MiniMax-M3` skips reasoning by default. Set `thinking` to
            `{"type": "adaptive"}` to enable it and receive a `thinking` block,
            or to `{"type": "disabled"}` to turn it off.

            - `MiniMax-M2.5` reasons without returning a `thinking` block. Its
            reasoning tokens count towards `output_tokens`.

            - Reasoning tokens count towards the output limit and are billed at
            the output rate.
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - adaptive
                - disabled
        output_config:
          type: object
          description: Output configuration.
          properties:
            effort:
              type: string
              description: >-
                - `MiniMax-M4`, `MiniMax-M3.1-Flash` — Reasoning effort: `low`,
                `medium`, `high`, `xhigh` or `max` (default). `none` returns
                HTTP 400. Higher effort typically uses more reasoning tokens and
                increases latency.

                - `MiniMax-M3` and `MiniMax-M2.5` cannot change reasoning depth.
                Omit this parameter for these models.
              enum:
                - low
                - medium
                - high
                - xhigh
                - max
              example: high
        tools:
          type: array
          description: >-
            Define tools using the Anthropic format. Each `input_schema` is a
            JSON Schema object. `MiniMax-M2.5` does not support tools on this
            endpoint. Use [Chat
            Completions](/en/api-manual/language-series/minimax/chat-completions/chat-completions-reference)
            for tool calls.
          items:
            $ref: '#/components/schemas/Tool'
        tool_choice:
          type: object
          description: >-
            Tool selection strategy. Only `auto` is supported; the model decides
            whether to call a tool.
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - auto
    MessageResponse:
      type: object
      description: Anthropic-style message response
      properties:
        id:
          type: string
          description: Unique message ID
        type:
          type: string
          enum:
            - message
          description: Response object type
        role:
          type: string
          enum:
            - assistant
        model:
          type: string
          description: Model actually used
          example: MiniMax-M4
        content:
          type: array
          description: >-
            Response blocks: `thinking` for reasoning (may be absent for simple
            questions and is omitted for `MiniMax-M2.5`), `text` for the answer,
            `tool_use` for a tool call.
          items:
            $ref: '#/components/schemas/OutputContentBlock'
        stop_reason:
          type: string
          description: |-
            Stop reason

            - `end_turn`: Natural completion
            - `max_tokens`: Reached max_tokens limit
            - `tool_use`: Model triggered a tool call
          enum:
            - end_turn
            - max_tokens
            - tool_use
        usage:
          $ref: '#/components/schemas/AnthropicUsage'
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          enum:
            - error
        error:
          type: object
          properties:
            type:
              type: string
              description: >-
                Error type (e.g. invalid_request_error / authentication_error /
                billing_error, etc.)
            message:
              type: string
              description: Error description
        request_id:
          type: string
          description: Request tracking ID
    InputMessage:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
          description: >-
            Message role. Alternate between user and assistant messages.


            - `user`: user messages, including `tool_result` blocks

            - `assistant`: assistant history, including `text`, `thinking`, and
            `tool_use` blocks


            Provide system prompts in the top-level `system` field.
        content:
          description: >-
            Message content


            **Notes**:

            - For plain text, pass a string directly

            - For structured content, pass a content block array (`text` /
            `image` / `video` / `tool_use` / `tool_result` / `thinking`)
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContentBlock'
    Tool:
      type: object
      required:
        - name
        - input_schema
      properties:
        name:
          type: string
          description: |-
            Tool name

            **Notes**:
            - Only `a-zA-Z0-9_-` allowed
            - Maximum 64 characters
        description:
          type: string
          description: Tool description, helps the model determine when to call it
        input_schema:
          type: object
          description: |-
            JSON Schema object for tool input parameters

            **Notes**:
            - `type` must be `object`
            - Should declare `properties` and `required`
    OutputContentBlock:
      type: object
      description: Content block in the response
      properties:
        type:
          type: string
          enum:
            - text
            - thinking
            - tool_use
        text:
          type: string
          description: Text when type=`text`
        thinking:
          type: string
          description: Reasoning process text when type=`thinking`
        signature:
          type: string
          description: >-
            Integrity signature when type=`thinking`, used for multi-turn
            context verification. The example uses a placeholder for
            `signature`. When sending the next request, use the complete value
            from your previous response.
        id:
          type: string
          description: Tool call ID when type=`tool_use`
        name:
          type: string
          description: Tool name when type=`tool_use`
        input:
          type: object
          description: JSON input parameters generated by the model when type=`tool_use`
    AnthropicUsage:
      type: object
      description: Token usage statistics (Anthropic specification)
      properties:
        input_tokens:
          type: integer
          description: Uncached input tokens, excluding `cache_read_input_tokens`.
          example: 55
        output_tokens:
          type: integer
          description: Output token count (including thinking)
          example: 66
        cache_creation_input_tokens:
          type: integer
          description: >-
            Number of input tokens used to create the cache. This is 0 with
            automatic caching.
          example: 0
        cache_read_input_tokens:
          type: integer
          description: >-
            Cached input tokens, billed at the cache-hit rate. Total input
            tokens = `input_tokens + cache_read_input_tokens`.
          example: 174
        output_tokens_details:
          type: object
          description: Detailed breakdown of output tokens
          properties:
            thinking_tokens:
              type: integer
              description: Reasoning tokens, already included in `output_tokens`.
              example: 63
    ContentBlock:
      type: object
      description: >-
        Text, images (URL or Base64) and videos (URL or Base64) use `text`,
        `image` and `video` respectively. For tools, send `tool_use` and return
        `tool_result`. To continue reasoning, include the previous `thinking`
        block with its `signature`. `MiniMax-M4`, `MiniMax-M3.1-Flash` and
        `MiniMax-M3` accept images and video. `MiniMax-M2.5` accepts text only.
        JPEG, PNG, GIF or WEBP, up to 10 MB per image. Video formats: MP4, AVI,
        MOV and MKV. Each video can be up to 50 MB and 30 minutes long.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - text
            - image
            - video
            - tool_use
            - tool_result
            - thinking
        text:
          type: string
          description: Text content when type=`text`
        source:
          $ref: '#/components/schemas/MediaSource'
          description: Image or video source, used when `type=image` or `type=video`.
        id:
          type: string
          description: Tool call ID (required for tool_use)
        name:
          type: string
          description: Tool name (required for tool_use)
        input:
          type: object
          description: Tool input parameters (JSON object for tool_use)
        tool_use_id:
          type: string
          description: >-
            Corresponding tool call ID (required for tool_result, maps to
            tool_use.id)
        content:
          description: Tool execution result (tool_result), string or content block array
          oneOf:
            - type: string
            - type: array
              items:
                type: object
        thinking:
          type: string
          description: >-
            Reasoning from an assistant message in the conversation history,
            used when `type=thinking`.
        signature:
          type: string
          description: >-
            Reasoning signature. Preserve it when sending conversation history.
            The example uses a placeholder for `signature`. When sending the
            next request, use the complete value from your previous response.
    MediaSource:
      type: object
      description: >-
        - JPEG, PNG, GIF or WEBP, up to 10 MB per image.

        - Video formats: MP4, AVI, MOV and MKV. Each video can be up to 50 MB
        and 30 minutes long.

        - Each request, including history, accepts up to 200 images and 20
        videos. Maximum body size: 64 MB.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - base64
            - url
          description: Media source type
        media_type:
          type: string
          description: Required for base64 input, e.g. `image/png` or `video/mp4`
        data:
          type: string
          description: Base64-encoded media bytes
        url:
          type: string
          description: Public URL of the image or video
        detail:
          type: string
          enum:
            - low
            - default
            - high
          default: default
          description: >-
            Understanding precision, defaults to default. Higher resolution
            consumes more tokens
        fps:
          type: number
          minimum: 0.2
          maximum: 5
          default: 2
          description: >-
            Frame sampling rate in frames per second. Default 2, range [0.2, 5].
            Higher values capture more motion and consume more tokens.
        max_long_side_pixel:
          type: integer
          minimum: 1
          description: >-
            Maximum pixel constraint for the longest side of images or video
            frames
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        All APIs require Bearer Token authentication


        **Get API Key:**


        Visit [API Key Management Page](https://evolink.ai/dashboard/keys) to
        get your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        **Note**: EvoLink uses Bearer Token authentication uniformly for
        `/v1/messages`.

````

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