v2
latestOpenAPI 3.1.02026-08-05267431678.1 KBCreate Generation Job
Create an async dataset generation job.
Returns immediately with a job_id. Poll GET /generate/jobs/{job_id} for status and results.
The task_type field in the request body determines what kind of dataset is generated:
- ner: Named-entity recognition dataset. Requires labels.
- classification: Text classification dataset. Requires labels.
- custom: Free-form prompt-based dataset. Requires prompt.
- decoder: Instruction-tuning (chat format) dataset. Requires domain_description.
Dispatches via SQS with idempotency deduplication; falls back to an in-process background task if SQS is unavailable.
Args: request: Incoming HTTP request (used by SlowAPI rate limiter). generation_request: Unified generation parameters including task_type. auth: Authenticated user context. is_seed: Whether this is a small seed dataset for UI preview. synthesis_session_id: Optional synthesis log session UUID for resume.
Returns: GenerateAsyncResponse with job_id for polling and initial status.
Raises: HTTPException: 422 if required task-specific fields are missing.
Query parameters
Whether this is a seed generation
Whether this is a seed generation
Synthesis log session ID for resume support
Synthesis log session ID for resume support
Request body
Response
Successful Response