Developers and API
Using the OpenAI SDK, choosing between sync, async and streaming, and handling API keys.
3 articles
- Can I use the OpenAI SDK with ModelRiver?Yes. Point the OpenAI SDK, LangChain, LlamaIndex or Vercel AI SDK at ModelRiver by changing the base URL and API key, and use your workflow name as the model.
- Should I use sync, async or streaming, and do I need webhooks?Choose between ModelRiver's sync, async and streaming requests, and learn when webhooks are needed. Most apps don't need webhooks to show AI answers.
- How should I create, store and rotate my ModelRiver API keys?ModelRiver API keys start with mr_live_, are shown once and can expire. Learn how to create, store, rotate and revoke keys safely without downtime.