api.md

Created about 12 hours ago

attributes
source_pathreferences/workers-ai/api.md
source_sha256fc0b5f7f0d0ddca28277a57abbbba09a13bd7b41da4bf6d62f7b4e0aefce07f7
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/workers-ai/api.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Workers AI API

Fetch the selected model's page from the model catalog for request fields, output format, dimensions, and examples. Text, embeddings, images, audio, and translation do not share one response schema.

Task Documentation
Invoke inference through a Worker binding Workers bindings
Invoke inference over HTTP REST API reference
Stream text or use SDK abstractions Vercel AI SDK, or the selected model's streaming example
Define tools and handle tool results Function calling
Request structured output JSON mode

Use the response and stream format documented for the chosen integration. Do not assume native binding streams are parsed objects or apply OpenAI response parsing to every model. Check the model's batching support and limits before combining inputs in one request.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.