3D

Native 3D generative model for high-quality 3D asset creation

post/generate/3d/microsoft/trellis-2

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Headers

X-Webhook-URL, string uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

Request body

object required
prompt, string
seed, number
input_mode, 'image' | 'text'
generate_texture, boolean
resolution, '512' | '1024' | '1536'
texture_size, '1024' | '2048' | '4096'
decimation_target, number
image_urls, string[]

Input image URLs for image-to-3D generation. Required unless input_mode is "text"; omit or pass an empty array for text-to-3D.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

object required
job_id, string uuid required
status, 'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'finalizing' | 'completed' | 'failed' | 'cancelled' required
created_at, string date-time required
completed_at, unknown required
result, unknown required
error, object
progress, number nullable
export_progress, object

Motion exports only, while running: frames rendered of the total, then finishing while the sound is added, then saving while the MP4 is filed.

Changes