Platform API
Models
Use model endpoints to inspect the models available to an organization and request access to gated models.
List Accessible Models
GET /organizations/{org_id}/models
Lists model availability and pricing for an organization.
Permission: api-read
Response:
{
"data": [
{
"model_sku": "qwen/qwen3.5-4b-free",
"model_kind": "generation",
"input_modalities": ["text", "image"],
"output_modalities": ["text"],
"quantization": "fp16",
"default_settings": {},
"price_per_sec_usd": 0,
"price_m_input_cache_read_tokens_usd": 0,
"price_m_input_tokens_usd": 0,
"price_m_output_tokens_usd": 0,
"access": null,
"max_context_len": 32768,
"tools_supported": true,
"public": true,
"status": "active",
"developer": "Mixlayer"
}
]
}input_modalities lists accepted input types. Models with "image" support Vision.
access is pending, grant, deny, or null.
status can be:
| Status | Meaning |
|---|---|
active | The organization can use the model. |
access_required | Access must be requested before use. |
access_pending | Access has been requested. |
payment_method_required | Billing needs a payment method. |
prepaid_credits_required | Prepaid credits are required. |
spend_limit_exceeded | A spend limit blocks use. |
billing_setup_failed | Billing setup failed. |
disabled | The model is disabled. |
Request Model Access
POST /organizations/{org_id}/models/request
Requests access to a model for an organization.
Permission: api-write
Request:
{
"model_sku": "model-sku"
}Fields:
| Field | Type | Required | Description |
|---|---|---|---|
model_sku | string | Yes | Model SKU to request access for. |
Response: 204 No Content
Errors
All endpoints can return:
{
"error": {
"message": "resource not found"
}
}Common statuses:
| Status | Code | When |
|---|---|---|
400 | none | Invalid JSON or missing model_sku. |
401 | none | Authentication failed. |
403 | insufficient_api_key_permissions | API key does not have the required permission. |
404 | none | Organization, model, or API-key organization scope was not found. |
500 | none | Internal error. |