GET
/v1/schemas/fal/chat/openrouter/router?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace5b8b68ff0919f7e77478ea5b03f7728762ed7e76822b6bf45e1d1c9334f7a962{
"fetchedAt": 1783328807,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
5 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| output* | string | Generated output | |
| partial | boolean | Whether the output is partial | default: false |
| error | string | Error message if an error occurred | nullable |
| usage | UsageInfo | Token usage information | nullable |
| reasoning | string | Generated reasoning for the final answer | nullable |
Types
2 $defsPromptTokensDetailsobject
| cached_tokens | integer | default: 0 | |
| cache_write_tokens | integer | default: 0 |
UsageInfoobject
| prompt_tokens_details | PromptTokensDetails | nullable | |
| cost* | number | ||
| completion_tokens | integer | nullable | |
| total_tokens | integer | default: 0 | |
| prompt_tokens | integer | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"openrouter/router","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}