v4

latestOpenAPI 3.0.22026-08-02109239415.7 KB
batch

Initiate Batch Magic Prompt Evalution

Runs automated evaluation of multiple LLM models and system prompts for magic prompt generation. Generates images using large batches of user prompt inputs. Internal use only (feature flagged).

post/internal/batch

Request body

user_promptsstring[] required

The prompts to enhance with a magic prompt.

experiment_variantstring

The experiment variant used for template selection for the magic prompts.

Example request

{
  "user_prompts": [
    "a cat",
    "a dog"
  ],
  "sampling_request_params": {
    "magic_prompt_system_prompt_config_id": "magic_prompt_system_prompt_config_id",
    "aspect_ratio": "1x1",
    "style_type": "GENERAL",
    "magic_prompt_version": "V_0",
    "seed": 12345,
    "negative_prompt": "brush strokes, painting",
    "magic_prompt_option": "ON",
    "model": "V_2_TURBO",
    "resolution": "1280x800",
    "num_images": 1,
    "color_palette": {
      "name": "PASTEL"
    }
  },
  "experiment_variant": "MAGIC_PROMPT_NO_TEXT"
}

Response

Batch magic prompt evalution completed successfully.

job_idstring required

The job id for the batch generation.

Example response

{
  "job_id": "job_id"
}