Synchronous call

Synchronous AI Pattern

Wait for AI to finish, then return the result immediately. The simplest option for quick AI requests that complete within a normal HTTP request.

Sync request flow

Wait for AI to finish, then return the complete response to your backend.

Wait for AI to finish before returning the response.

1
Your backend
Sends AI request
2
ModelRiver
Coordinates AI requests
3
AI providers
AI generates a response
Architecture

Why sync requests?

Wait for AI to finish, then return the result immediately to your application. Perfect for quick AI tasks where users expect an instant response.

Fast Acknowledgment

Return a response immediately while AI continues working in the background. Your users don't have to wait for long-running AI tasks to finish.

Background Execution

Run large AI tasks in the background instead of slowing down your backend. Your application stays responsive while ModelRiver manages the heavy AI work.

Automatic Fallback

If one AI provider becomes slow or unavailable, ModelRiver automatically switches to another so your workflows continue without interruption.

Live progress updates

Show progress and final results as soon as they're available. Users see updates instantly without refreshing the page.