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

# Create Chat Completion



## OpenAPI

````yaml /openapi.json post /openrouter/v1/chat/completions
openapi: 3.1.0
info:
  title: AGIPower API
  version: 1.0.0
  description: >-
    Interactive API reference for AGIPower-compatible OpenAI, Anthropic, Google
    Vertex AI, and management endpoints.
servers:
  - url: https://api.agipower.ai
security:
  - bearerAuth: []
paths:
  /openrouter/v1/chat/completions:
    post:
      tags:
        - OpenRouter Compatible API
      summary: Create Chat Completion
      operationId: createOpenRouterChatCompletion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
      responses:
        '200':
          description: OpenRouter-compatible chat completion response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
components:
  schemas:
    ChatCompletionRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          example: openai/gpt-5
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
                example: user
              content:
                type: string
                example: Hello from AGIPower
            additionalProperties: true
        stream:
          type: boolean
          default: false
        temperature:
          type: number
          example: 0.7
        max_tokens:
          type: integer
          example: 1024
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````