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

# Anthropic

> Send requests to any Anthropic model by specifying the `{model}` placeholder in the path.



## OpenAPI

````yaml post /models/v2/anthropic/{model}
openapi: 3.0.3
info:
  title: Closed Source Model API
  description: >
    # 🚀 Get started here


    Guides you through CRUD operations (GET, POST, PUT, DELETE), variables, and
    tests.


    ✨ Link to [Bytez GitHub README.md](https://github.com/Bytez-com/docs).
  version: 1.0.0
servers:
  - url: https://api.bytez.com
    description: Production server
security: []
paths:
  /models/v2/anthropic/{model}:
    post:
      summary: Anthropic
      description: >-
        Send requests to any Anthropic model by specifying the `{model}`
        placeholder in the path.
      operationId: anthropicModels
      parameters:
        - $ref: '#/components/parameters/ModelParameterAnthropic'
      requestBody:
        $ref: '#/components/requestBodies/UniversalRequestBody'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
      security:
        - apiKeyAuth: []
          providerKeyAuth: []
components:
  parameters:
    ModelParameterAnthropic:
      name: model
      in: path
      required: true
      schema:
        type: string
      description: >-
        The specific Anthropic model to interact with (e.g.,
        `claude-3-haiku-20240307`).
  requestBodies:
    UniversalRequestBody:
      description: >-
        Universal schema that supports text, chat, image, audio, video, QA,
        zero-shot, and more.
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UniversalRequestBodySchema'
  responses:
    SuccessResponse:
      description: Successful response from the model.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: null
                description: Null if everything is fine
              output:
                oneOf:
                  - type: string
                  - type: object
                  - type: array
                description: Model output
  schemas:
    UniversalRequestBodySchema:
      type: object
      properties:
        text:
          type: string
          description: Input text for NLP tasks.
        messages:
          $ref: '#/components/schemas/MessagesProperty'
        url:
          type: string
          format: uri
          description: URL to image/audio/video.
        base64:
          type: string
          description: Base64-encoded image/audio/video.
        question:
          type: string
          description: Question (for QA tasks).
        context:
          type: string
          description: Context paragraph (for QA tasks).
        candidate_labels:
          type: array
          description: Candidate labels (for zero-shot).
          items:
            type: string
        stream:
          $ref: '#/components/schemas/StreamProperty'
        json:
          $ref: '#/components/schemas/JsonProperty'
        params:
          $ref: '#/components/schemas/ParamsProperty'
    MessagesProperty:
      type: array
      description: Conversation history.
      items:
        $ref: '#/components/schemas/Message'
    StreamProperty:
      type: boolean
      description: Enable/disable text streaming.
    JsonProperty:
      type: boolean
      description: Stream media instead of JSON.
    ParamsProperty:
      type: object
      description: Model-specific parameters.
      properties:
        min_length:
          type: integer
          description: Minimum response length.
        max_length:
          type: integer
          description: Maximum response length.
        temperature:
          type: number
          description: Sampling temperature.
    Message:
      type: object
      properties:
        role:
          type: string
          enum:
            - system
            - user
            - assistant
        content:
          oneOf:
            - type: string
              description: Text-only message content.
            - type: array
              description: Multi-modal content blocks.
              items:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
                    enum:
                      - text
                      - image
                      - audio
                      - video
                  text:
                    type: string
                    description: Text when `type` is `text`.
                  url:
                    type: string
                    format: uri
                    description: HTTP URL to the media when `type` is image/audio/video.
                  base64:
                    type: string
                    description: Base64-encoded media when `type` is image/audio/video.
      required:
        - role
        - content
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >
        Set `Authorization` header to `BYTEZ_KEY` (e.g. 'Authorization': 'Key
        ABC123')
    providerKeyAuth:
      type: apiKey
      in: header
      name: provider-key
      description: >
        Set `provider-key` header to `PROVIDER_KEY` (e.g. 'provider-key':
        'OPEN_AI_KEY')

````