Chat Completions API

Chat (Claude Sonnet 4 and other LLMs)

Playground: /playground/claude-chat

Chat models use the OpenAI-compatible gateway, not the async Jobs API:

POST https://modkie.com/api/gateway/chat/completions
Authorization: Bearer YOUR_API_KEY
{
  "model": "anthropic/claude-sonnet-4",
  "messages": [
    { "role": "user", "content": "Summarize the benefits of a unified AI API." }
  ]
}

Estimated cost: 5 credits per Claude Sonnet 4 run in the Market catalog (token metering may apply).