API providers
An API provider combines a model, service URL, keys, purpose, and request settings. Configure and test one provider before adding rotation and failover routes.
Provider list and keys
A provider is used only when enabled, assigned to the required Text or Images purpose, and not temporarily blocked after failures. Select a loaded model or enter its exact ID. Table order defines priority and failover order.
The primary key is tried first. Extra keys are entered one per line and rotate after a 429 rate-limit response; other HTTP failures first follow the retry policy. JSON export helps move settings, but verify purpose, URL, model, and availability after import.
Priority and round-robin
Priority starts with the top available provider and moves on only when that route is exhausted or unavailable. Round-robin rotates the starting provider for new items and keeps the others as a failover chain.
Provider lists on the Prompts tab are allow-lists and do not replace global order. Parallel API generation is disabled in Priority mode to preserve strict ordering.
API delays
When enabled, between requests enforces a minimum interval even across parallel callers. After errors adds a pause around retries or a failed completion. Delays reduce rate-limit and account-block risk but slow the run; both values are ignored when the switch is off.
Retry policy
Maximum attempts controls how often one HTTP request may be tried after a temporary failure. Initial delay is used before the first retry; later waits increase with a small random variation. Zero disables these retries.
This is separate from key rotation and provider failover: retries recover the current request, while rotation decides where to go after the current route is exhausted.
Request timeout
The timeout limits one attempt at a provider. Text and image fields show the same synchronized value. A short value can interrupt a working heavy model; a long one delays detection of a stuck service. Retry and failover rules apply after a timeout.
Request format
- Chat sends role-based messages.
- Responses uses the OpenAI Responses API and
/responses. - Completion sends one combined prompt without roles.
- Custom requires a manually matched endpoint, headers, body, and response format.
The selector is available for OpenAI-compatible and Custom REST providers. A mismatched format and endpoint may connect but return no usable content.
Role support
User is required and carries the main prompt. Clear System when the provider rejects system messages; the separate system prompt will then not be sent. This avoids an incompatible request but also removes those instructions, so verify output with a prompt test.
Image-provider parameters
Use global aspect ratio reads aspect and dimensions from the Images tab. Clear it to set a provider-specific aspect and base width/height for APIs that accept explicit dimensions; the aspect is mapped to native provider sizes.
Steps and output quality override global fallbacks only when their checkboxes are enabled. Provider capabilities may clamp supported ranges, so not every API accepts the same number.
Server-side web search
Enable search with the Server-side LLM web search checkbox in the settings of the specific text API provider. Advanced no longer contains a separate model_id list: enable the checkbox for the selected model when it supports web search.
The application sends the setting in the format required by the selected API. Merely asking for web search in a prompt does not enable server-side search by itself.
Model availability checks
Check all tests the loaded list; Check selected tests highlighted rows. Delay separates tests for rate limits, and Timeout limits each model check. The table reports status, latency, and message; filtering only changes what is visible.
The check neither enables a model nor guarantees generation quality. It confirms that the current URL, key, and model respond at test time.
Connection and prompt tests
Connection testing sends a minimal request to validate the endpoint. A prompt test performs real generation: text providers show response, duration, and usage; image providers generate a preview with current parameters.
Use a short prompt and a realistic Parameters timeout—heavy models may need more than 30 seconds. Success validates the current configuration but does not save unsaved edits or guarantee enough quota for a batch.