APIReference

Create a Messages-compatible response

POST
/v1/messages

Messages-compatible adapter used when Codius App runs Claude Code with Codius models. It uses the same authorization, metering, limits, and request IDs as Chat Completions. Requires the inference:create scope.

AuthorizationBearer <token>

A Codius organization API key, sent as Authorization: Bearer codius_live_…. Keys carry a subset of the models:read, inference:create, and usage:read scopes — never billing or admin permissions.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

model*string
max_tokens*integer
Range1 <= value
messages*array<>
Items1 <= items
system?string|array<>
stream?boolean
Defaultfalse
tools?array<>
[key: string]?any

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "max_tokens": 1,    "messages": [      {}    ]  }'
{}