Get a ChinaAPI request recipe
chinaapi_get_recipeGet a runnable request for one model — endpoint, headers, JSON body or multipart form, a curl command, and for video the polling step — exactly as ChinaAPI's /agents page shows it. Optionally include the configuration that points a coding agent (Claude Code, Codex, Cursor, …) at ChinaAPI. The request uses $CHINAAPI_KEY; never put a real key into it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "chinaapi_get_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Also return the configuration that points this coding agent at ChinaAPI, as ChinaAPI's /agents page shows it. | |
| model | Yes | Exact, case-sensitive model ID as returned by chinaapi_list_models. | |
| protocol | No | Inbound protocol for text models: openai (/v1/chat/completions), anthropic (/v1/messages) or responses (/v1/responses). Defaults to the agent's protocol, else openai. | |
| capability | No | Which of the model's capabilities the request is for; defaults to its first published capability. |