---
title: A I Gateway
full: true
_openapi:
  toc:
    - depth: 2
      title: Chat Completions (OpenAI-compatible)
      url: '#chat-completions-openai-compatible'
    - depth: 2
      title: List Available Models
      url: '#list-available-models'
  structuredData:
    headings:
      - content: Chat Completions (OpenAI-compatible)
        id: chat-completions-openai-compatible
      - content: List Available Models
        id: list-available-models
    contents:
      - content: >
          OpenAI-compatible chat completions endpoint with automatic X402
          payments.

          Just change your base URL and use your AgnicPay token!
        heading: chat-completions-openai-compatible
      - content: List all available AI models through the gateway.
        heading: list-available-models
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

OpenAI-compatible AI endpoints

<APIPage document={"content/openapi/agnicpay.yaml"} operations={[{"path":"/v1/chat/completions","method":"post"},{"path":"/v1/models","method":"get"}]} webhooks={[]} hasHead={true} />