Properties
| Name | Type | Description |
|---|---|---|
| data | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/usdf-fi/json-schema/usdf-fi-generation-schema.json",
"title": "Generation",
"x-generated": "2026-11-27",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/usdf-fi-openapi.json#/components/schemas/Generation",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The request's id."
},
"request_id": {
"type": "string"
},
"upstream_id": {
"anyOf": [
{
"type": "string",
"description": "Not recorded: null."
},
{
"type": "null"
}
]
},
"total_cost": {
"type": "number",
"description": "What the request was paid with, in USD: USDF from the balance, free credit and a platform's markup."
},
"usage": {
"type": "number",
"description": "The same as total_cost."
},
"cache_discount": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"upstream_inference_cost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string"
},
"model": {
"type": "string"
},
"app_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"streamed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"cancelled": {
"anyOf": [
{
"type": "boolean",
"description": "true when the caller ended it before any output, false when it was served whole, null otherwise."
},
{
"type": "null"
}
]
},
"provider_name": {
"anyOf": [
{
"type": "string",
"description": "The route that served: Foundry network, or its kind where it is network or private; never a supplier's name."
},
{
"type": "null"
}
]
},
"latency": {
"anyOf": [
{
"type": "number",
"description": "The gateway's wall time for the request, in milliseconds."
},
{
"type": "null"
}
]
},
"moderation_latency": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"generation_time": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"finish_reason": {
"anyOf": [
{
"type": "string",
"description": "Not recorded: null."
},
{
"type": "null"
}
]
},
"native_finish_reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"service_tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"tokens_prompt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"tokens_completion": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"native_tokens_prompt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"native_tokens_completion": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"native_tokens_cached": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"native_tokens_reasoning": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"native_tokens_completion_images": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"num_media_prompt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"num_input_audio_prompt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"num_media_completion": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"num_search_results": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"num_fetches": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"web_search_engine": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"origin": {
"type": "string"
},
"is_byok": {
"type": "boolean",
"description": "Served on the account's own provider key."
},
"external_user": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"api_type": {
"anyOf": [
{
"type": "string",
"description": "completions, embeddings, rerank, image, tts, stt or video; null for a tool call."
},
{
"type": "null"
}
]
},
"preset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"router": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provider_responses": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object"
}
},
{
"type": "null"
}
]
},
"user_agent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"http_referer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"data_region": {
"type": "string"
},
"workspace_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provider": {
"type": "string",
"description": "The route that served: \"Foundry network\", or its kind where it is network (Network compute) or private (attested hardware); never a provider's id or name."
},
"endpoint": {
"type": "string"
},
"status": {
"type": "string",
"description": "ok, partial or failed_refunded."
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"key_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"usdf": {
"type": "object",
"description": "total, and refunded where the request was refunded, each exactly as an Amount; with cost (USDF from the balance), credit (free credit) and markup (a platform's, on its sub-key) apart, except to the holder of a platform's sub-key, who is shown the total it paid."
},
"receipt": {
"type": "string",
"description": "The request's receipt: GET it with the key that made the request."
}
},
"required": [
"id",
"total_cost",
"usage",
"created_at",
"model",
"provider_name",
"tokens_prompt",
"tokens_completion",
"streamed",
"is_byok",
"status",
"usdf"
]
}
},
"required": [
"data"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/usdf-fi-generation"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.