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

# OpenAI,Claude, Gemini,... Chat

> This endpoint generates a chat completion response from OpenAI's models. You can use for Claude AI, GPT-4, and other models.



## OpenAPI

````yaml POST /v1/chat/completions
openapi: 3.0.1
info:
  title: OpenAI,Claude, Gemini,... Chat
  description: >-
    This API provides access to all models and features of OpenAI's chat
    completion service.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bieapi.com
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: Create a chat completion
      description: >-
        This endpoint generates a chat completion response from OpenAI's models.
        You can use for Claude AI, GPT-4, and other models.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                stream:
                  type: boolean
                  description: Whether to use stream mode (simulates typing effect).
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        description: >-
                          Role of the message sender (e.g., `user`,
                          `assistant`).
                      content:
                        type: string
                        description: Content of the message.
                    required:
                      - role
                      - content
                  description: Context of the conversation.
                model:
                  type: string
                  description: The model to use (e.g., `gpt-4o-mini`).
              required:
                - stream
                - messages
                - model
            examples:
              basicExample:
                summary: Basic Request
                value:
                  model: claude-3-5-sonnet-20240620
                  messages:
                    - role: user
                      content: Hi
                  stream: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique ID of the response.
                  object:
                    type: string
                    description: Type of the response object.
                  created:
                    type: integer
                    description: Timestamp of the response creation.
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: object
                          properties:
                            role:
                              type: string
                              description: Role of the message sender.
                            content:
                              type: string
                              description: Content of the generated message.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````