Skip to main content
Minimal end-to-end examples against Mirobody Cloud. Before copying a curl example, choose your Cloud region. For authenticated calls, it must be the same region as your key. The examples below use MIROBODY_API_BASE:
For SDK examples with a literal Global URL, use the matching China URL when your account is in China. See Regions. Set MIROBODY_API_KEY to a key from the same region’s console. Keep the key in your shell environment; the Python and Node examples below read it from there.

curl

Python (OpenAI SDK)

openai-agents SDK (your tools + Mirobody’s agent)

The openai-agents SDK works against the Agent API by changing only the base URL:
See Function calling for the underlying handoff protocol.

Node.js (OpenAI SDK)

More: Answers API · Agent API · Structured Records · Files / Photos · Standardize.

See also