Create a custom model
Create a new custom model or update an existing one (upsert by model_name). Custom models allow organization-specific configurations with custom pricing, capabilities, and provider associations.
Headers
Bearer token. Use Bearer YOUR_API_KEY.
Request
Human-readable display name.
Alternative to custom_provider_id.
Cost per 1M input tokens (USD).
Cost per 1M output tokens (USD).
Cost per 1M cached input tokens (USD).
Cost per 1M cache creation tokens (USD).
Streaming support. 0 = no, 1 = yes.
Function calling support. 0 = no, 1 = yes.
Image/vision support. 0 = no, 1 = yes.
Response
Created/updated model.
Cost per 1M input tokens (USD).
Cost per 1M output tokens (USD).
Cost per 1M cached input tokens (USD).
Cost per 1M cache creation tokens (USD).
Streaming support. 0 = no, 1 = yes.
Function calling support. 0 = no, 1 = yes.
Image/vision support. 0 = no, 1 = yes.