Create Generation Job
Changed onCreate 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.
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Whether this is a seed generation
Synthesis log session ID for resume support
Request body
Response
Successful Response
Changes
- info
endpoint added
- info