AI Gateway
Get a model pricing override
Get a custom provider model's pricing override and effective pricing source. Requires ai_gateway_config_read and provider View. Catalog and pricing metadata inherit provider access. Lists omit hidden entries; direct reads of hidden resources return 404.
get/api/v2/providers/{provider_id}/models/{canonical}/pricing
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesai_gateway_config_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
provider_idinteger required
Provider ID.
canonicalstring required
Canonical model identifier.
Response
OK
Example response
{
"data": {
"attributes": {
"pricing_config": {
"source": {
"provider_id": "openai",
"type": "custom"
},
"version": 1
}
},
"id": "gpt-4o",
"type": "model-pricing"
}
}Changes
Changes to this operation have not been checked yet.