GenerationBatches API
Batches of AI generation jobs
Fields
interface GenerationBatches {
name: string;
provider: 'openai' | 'anthropic' | 'google' | 'parasail';
status?: 'queued' | 'processing' | 'completed' | 'failed';
batchConfig?: Record<string, any>;
providerBatchId?: string;
generations?: string[];
startedAt?: string;
completedAt?: string;
}
API Endpoints
GET /api/generationBatches
Retrieves a list of GenerationBatches with pagination.
Query Parameters
limit
: Maximum number of items to return (default: 10)page
: Page number for pagination (default: 1)sort
: Field to sort by (default: createdAt)where
: JSON query for filtering results
GET /api/generationBatches/:id
Retrieves a single GenerationBatches by ID.
POST /api/generationBatches
Creates a new GenerationBatches.
PATCH /api/generationBatches/:id
Updates an existing GenerationBatches.
DELETE /api/generationBatches/:id
Deletes a GenerationBatches.
Last updated on