model is your agent id, and the agent’s knowledge, skills, and
guardrails all apply to the response. All paths are relative to
https://builder.flowyte.com/api/v1.
Authenticate with your secret key
Authorization: Bearer flowyte_sk_… (scope chat:write). This endpoint serves the agent’s published
version.What you’ll use
| Action | Endpoint | Scope |
|---|---|---|
| Create a completion | POST /chat/completions | chat:write |
The base-URL swap
Set the client’s base URL tohttps://builder.flowyte.com/api/v1, the API key to your
flowyte_sk_…, and pass the agent id as model. The SDK appends /chat/completions for you.
choices[0].message.content.
Streaming
Setstream: true and the endpoint returns OpenAI-style SSE chunks —
data: {choices:[{delta:{content}}]} … terminated by data: [DONE] — so an OpenAI SDK’s
streaming mode works unchanged.
What’s read, and what isn’t
- Only
model,messages,stream, anduserare used. The agent’s own configuration governs its behavior — sampling, tools, and system prompt come from the published agent, so request-level overrides for those are ignored. modelmust be a real agent id, not an OpenAI model name. An unknown id returns a400.- Roles
system,user,assistant, andtoolare accepted inmessages.