Skip to main content
Every successful response includes a routing_metadata object with details about how the request was routed and its cost. Only publicly stable fields are listed below. Internal fields classified as HIDDEN in sdk-exposure.yaml are stripped at the API boundary and are not part of the public contract.
FieldTypeRequiredDescription
costCostInfoNoCost for the request
cost.usdnumberYesBillable cost in USD
model_canonicalstringYesCanonical model ID requested
providerstringYesProvider name (e.g., “fireworks_ai”, “anthropic”)
provider_model_idstringYesProvider’s model ID
routing_strategystringYesStrategy used for routing. Known values: cost, cost-focus, ttft, ttft-focus, tps, tps-focus, balanced, custom. custom is returned when explicit routing.weights are provided. Additional strategies may be added in future versions.
ttft_msnumberNoTime to first token (streaming only)
warningsstring[]NoWarnings about ignored/unsupported configuration