Docsapi referenceCoding Endpoints

Coding Endpoints

API endpoints for LLM completions via the coding plan.

Overview

Coding endpoints provide access to LLMs for chat and completions. They are compatible with the OpenAI API format.

Send a completion

POST /v1/coding/chat/completions
Authorization: Bearer sk_...
{
  "model": "auto",
  "messages": [
    {"role": "system", "content": "You are a coding assistant."},
    {"role": "user", "content": "Write a Python function"}
  ]
}

Other endpoints

MethodEndpointDescription
GET/v1/coding/plansList available plans
GET/v1/coding/modelsList available models
GET/v1/coding/quotaCheck usage and limits