v1

latestOpenAPI 3.0.02026-08-0655112.7 KB
Endpoints

Generate Structured Prompt from Diff

Generates a new, optimized structured_prompt by analyzing the semantic difference between an original structred_prompt and a user-edited version. This endpoint is relevant for applications that allow for manual inline structured_prompt editing.

post/structured_prompt/generate_from_diff

Headers

api_tokenstring required

Request body

structured_promptstring required

A string containing the original structured prompt in JSON format.

user_adjusted_structured_promptstring required

A string containing the manually modified structured prompt in JSON format.

seedinteger

Seed for deterministic generation. Uses a random seed if omitted.

syncboolean

Response mode.

  • false (default): Asynchronous. Returns 202.
  • true: Synchronous. Returns 200 with result.
webhook_urlstring uri

Optional URL for receiving the result via webhook when the async job completes. See Webhooks.

model_version'FIBO'

Generation model version.

Response

Successful operation (Synchronous Success)

request_idstring required
warningstring

Returned only when ip_signal = true and the prompt field included IP content.