### Kling 2.1 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/kling-21 Example of a POST request to the Kling 2.1 endpoint for video generation. This includes a prompt and specifies the desired aspect ratio and duration. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/video/kling/kling-2.1: post: tags: - Video summary: Kling 2.1 description: |- Frontier model with 1080p resolution. | Mode | Duration | Compute Units | |------|----------|---------------| | std | 5s | 143 | | std | 10s | 286 | | pro | 5s | 258 | | pro | 10s | 515 | | master | 5s | 802 | | master | 10s | 1604 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: startImage: type: string format: uri prompt: type: string aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' duration: anyOf: - type: number const: 5 - type: number const: 10 default: 5 endImage: type: string format: uri mode: type: string enum: - master - pro default: master required: - prompt example: prompt: >- An ancient aqueduct, still channeling water across a modern cityscape. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: type: object properties: error: type: string required: - error '402': description: You have run out of credits. content: application/json: schema: type: object properties: error: type: string ``` -------------------------------- ### Ray 2 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/ray-2 This example demonstrates how to call the Ray 2 video generation endpoint with a prompt, width, and height. The endpoint supports various aspect ratios and an optional loop parameter. ```json { "prompt": "Studio Ghiblis reimagining of a quaint alpine village.", "width": 1024, "height": 1024 } ``` -------------------------------- ### Start Style Training with cURL Source: https://docs.krea.ai/developers/tutorials/train-image-style Use this cURL command to start a style training job. Provide the style name, an array of image URLs, the model, type, and max train steps in the JSON payload. Remember to replace YOUR_API_TOKEN. ```bash curl -X POST https://api.krea.ai/styles/train \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Ukiyo-E Style", "urls": [ "https://krea.ai/assets/img1.jpg", "https://krea.ai/assets/img2.jpg", "https://krea.ai/assets/img3.jpg" ], "model": "flux_dev", "type": "Style", "max_train_steps": 500 }' ``` -------------------------------- ### Kling 2.5 Video Generation Request Body Example Source: https://docs.krea.ai/api-reference/video/kling-25 Example of a request body for the Kling 2.5 video generation endpoint. This demonstrates how to specify a prompt for video creation. ```json { "prompt": ">- Rolling countryside with magical bathhouses and whispering forests, reminiscent of a Ghibli masterpiece." } ``` -------------------------------- ### Z Image Generation Request Example Source: https://docs.krea.ai/api-reference/image/z-image This example demonstrates how to make a POST request to the Z Image generation endpoint. It includes a prompt, aspect ratio, and resolution. Ensure the prompt is descriptive and the aspect ratio and resolution are valid. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/image/z-image/z-image: post: tags: - Image summary: Z Image description: |- Fastest model. Realistic, low diversity. | Compute Units | Average Completion Time | |---------------|-------------------------| | ~1 | ~5 seconds | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: prompt: type: string seed: type: number imageUrl: type: string format: uri denoising_strength: type: number minimum: 0 maximum: 1 default: 0.6 styleImages: type: array items: type: object properties: strength: type: number minimum: -2 maximum: 2 url: type: string format: uri required: - strength description: Image prompts to use for the generation skipPromptExpansion: type: boolean default: false aspect_ratio: type: string enum: - '1:1' - '4:3' - '2:3' - '16:9' - '9:16' description: 'Aspect ratio. One of: 1:1, 4:3, 2:3, 16:9, 9:16.' resolution: type: string enum: - 1K description: 'Resolution scale. One of: 1K.' styles: type: array items: type: object properties: id: type: string strength: type: number minimum: -2 maximum: 2 required: - id - strength description: >- Styles (typically LoRAs) to use for the generation. **Note:** The style must be public, trained by this API user, or shared with your workspace. Styles trained in the Krea app are owned by your user account — to use them via the API, first share them with your workspace via the app UI or `POST /styles/{id}/share/workspace`. required: - prompt - aspect_ratio - resolution example: prompt: >- A coral atoll, with hues of blue revealing marine life in clear lagoon waters. aspect_ratio: '1:1' resolution: 1K responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: ``` -------------------------------- ### Kling 2.0 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/kling-20 Example of a POST request to the Kling 2.0 video generation endpoint. This snippet demonstrates how to structure the request body with a prompt and other optional parameters. ```json { "prompt": "Enchanted library, books flying and tales coming alive, in a magical realism anime style." } ``` -------------------------------- ### Kling 2.6 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/kling-26 Example of a POST request to generate video using the Kling 2.6 model. This includes a prompt and specifies video generation parameters. ```yaml https://api.krea.ai/openapi.json post /generate/video/kling/kling-2.6 openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/video/kling/kling-2.6: post: tags: - Video summary: Kling 2.6 description: |- Frontier model with native audio. | Audio | Duration | Compute Units | |-------|----------|---------------| | No | 5s | 200 | | No | 10s | 401 | | Yes | 5s | 401 | | Yes | 10s | 802 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: startImage: type: string format: uri prompt: type: string aspectRatio: type: string enum: - '16:9' - '9:16' default: '16:9' duration: anyOf: - type: number const: 5 - type: number const: 10 default: 5 endImage: type: string format: uri generateAudio: type: boolean default: false required: - prompt example: prompt: A lighthouse, its beam revealing stories in the mist. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: type: object properties: error: type: string required: - error '402': description: You have run out of credits. content: application/json: schema: type: object properties: error: type: string required: - error '429': description: You have reached the maximum number of concurrent jobs. content: application/json: schema: ``` -------------------------------- ### Nano Banana Image Generation Request Example Source: https://docs.krea.ai/api-reference/image/nano-banana Example of a POST request to the /generate/image/google/nano-banana endpoint. This snippet shows how to specify a prompt and other optional parameters like image URLs or style images. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/image/google/nano-banana: post: tags: - Image summary: Nano Banana description: |- Most versatile intelligent model. | Compute Units | |---------------| | 22.3 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: batchSize: type: number minimum: 1 maximum: 4 default: 1 prompt: type: string minLength: 1 width: type: number description: Width of the generated image. height: type: number description: Height of the generated image. imageUrls: type: array items: type: string format: uri description: >- Image prompts to use for the generation. If provided, style images are ignored. styleImages: type: array items: type: object properties: strength: type: number minimum: -2 maximum: 2 url: type: string format: uri required: - strength description: Image prompts to use for the generation aspectRatio: type: string enum: - '21:9' - '1:1' - '4:3' - '3:2' - '2:3' - '5:4' - '4:5' - '3:4' - '16:9' - '9:16' required: - prompt example: prompt: A Victorian greenhouse where each pane frames a universe. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string ``` -------------------------------- ### Seedance Pro Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/seedance-pro This example demonstrates how to make a POST request to the Seedance Pro endpoint for video generation. It includes a prompt and specifies the desired aspect ratio. Ensure you have the correct API endpoint and authentication headers. ```http POST /generate/video/bytedance/seedance-1.0-pro HTTP/1.1 Host: api.krea.ai Content-Type: application/json Authorization: Bearer YOUR_API_KEY X-Webhook-URL: https://your.webhook.url { "prompt": "Dystopian cityscape, rebels with elemental powers, akin to action-packed shounen anime.", "aspectRatio": "16:9" } ``` -------------------------------- ### Runway Gen-3 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/runway-gen-3 Example of a POST request to the /generate/video/runway/gen-3 endpoint. This snippet demonstrates how to structure the request body with a prompt and optional parameters like startImage, aspectRatio, duration, and seed. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/video/runway/gen-3: post: tags: - Video summary: Runway Gen-3 description: |- Old cinematic model, higher consistency. | Duration | Compute Units | |----------|---------------| | 5s | 143 | | 10s | 286 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: startImage: type: string format: uri prompt: type: string aspectRatio: type: string enum: - '16:9' - '9:16' default: '16:9' duration: anyOf: - type: number const: 5 - type: number const: 10 default: 5 seed: type: number required: - prompt example: prompt: A Victorian greenhouse where each pane frames a universe. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: type: object properties: error: type: string required: - error '402': description: You have run out of credits. content: application/json: schema: type: object properties: error: type: string required: - error '429': description: You have reached the maximum number of concurrent jobs. content: application/json: schema: type: object properties: error: type: string required: - error components: securitySchemes: bearerAuth: ``` -------------------------------- ### Topaz Standard Enhance API Request Example Source: https://docs.krea.ai/api-reference/image-enhance/topaz This example demonstrates how to call the Topaz standard enhance endpoint with essential parameters. Ensure you provide a valid image URL, desired width, height, and model. ```bash curl -X POST https://api.krea.ai/generate/enhance/topaz/standard-enhance \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "width": 1024, "height": 1024, "image_url": "https://gen.krea.ai/images/0424f602-2999-4d0c-a46e-39cbf0ef384b.png", "model": "Standard V2" }' ``` -------------------------------- ### Generate Image Request using Python Source: https://docs.krea.ai/developers/api-keys-and-billing Example of how to make an image generation request using Python's requests library. Ensure you have the library installed. ```python import requests API_BASE = "https://api.krea.ai" API_TOKEN = "your-api-token" response = requests.post( f"{API_BASE}/generate/image/bfl/flux-1-dev", headers={ "Authorization": f"Bearer {API_TOKEN}", "Content-Type": "application/json" }, json={ "prompt": "a serene mountain landscape at sunset", "width": 1024, "height": 576 } ) job = response.json() print(f"Job ID: {job['job_id']}") ``` -------------------------------- ### Generate Video with Wan 2.5 (Node.js) Source: https://docs.krea.ai/developers/introduction This Node.js example demonstrates generating a video with Alibaba's Wan 2.5 model using the fetch API. Ensure you have your API token. ```javascript const API_BASE = "https://api.krea.ai"; const API_TOKEN = "your-token-secret"; const response = await fetch(`${API_BASE}/generate/video/alibaba/wan-2.5`, { method: "POST", headers: { "Authorization": `Bearer ${API_TOKEN}`, "Content-Type": "application/json" }, body: JSON.stringify({ prompt: "a drone flying over a tropical beach at sunset", duration: 5 }) }); const job = await response.json(); console.log(`Job ID: ${job.job_id}`); ``` -------------------------------- ### Generate Video with Wan 2.5 (Go) Source: https://docs.krea.ai/developers/introduction This Go program shows how to generate a video using Alibaba's Wan 2.5 model by making an HTTP POST request to the Krea AI API. ```go package main import ( "bytes" "encoding/json" "fmt" "net/http" ) func main() { apiBase := "https://api.krea.ai" apiToken := "your-token-secret" payload := map[string]interface{}{ "prompt": "a drone flying over a tropical beach at sunset", "duration": 5, } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", apiBase+"/generate/video/alibaba/wan-2.5", bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer "+apiToken) req.Header.Set("Content-Type", "application/json") client := &http.Client{} resp, _ := client.Do(req) defer resp.Body.Close() var job map[string]interface{} json.NewDecoder(resp.Body).Decode(&job) fmt.Printf("Job ID: %s\n", job["job_id"]) } ``` -------------------------------- ### Topaz Generative Enhance Request Example Source: https://docs.krea.ai/api-reference/image-enhance/topaz-generative Example of a POST request to the generative enhance endpoint with specified parameters. ```json { "width": 1024, "height": 1024, "image_url": "https://gen.krea.ai/images/0424f602-2999-4d0c-a46e-39cbf0ef384b.png" } ``` -------------------------------- ### Ideogram 3.0 API Request Example Source: https://docs.krea.ai/api-reference/image/ideogram-30 Example of a POST request to the Ideogram 3.0 endpoint with a prompt and other parameters. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/image/ideogram/ideogram-3: post: tags: - Image summary: Ideogram 3.0 description: |- Highly aesthetic, general-purpose model. | Character Reference | Compute Units | |---------------------|---------------| | Yes | 85.9 | | No | 34.4 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: batchSize: type: number minimum: 1 maximum: 4 default: 1 prompt: type: string minLength: 1 width: type: number minimum: 512 maximum: 8192 default: 1024 height: type: number minimum: 512 maximum: 8192 default: 1024 seed: type: number default: 1337 styleImages: type: array items: type: object properties: strength: type: number minimum: -2 maximum: 2 url: type: string format: uri required: - strength description: Image prompts to use for the generation characterReferenceImages: type: array items: type: string format: uri required: - prompt example: prompt: Eschers rendition of a Venetian canal house. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: type: object properties: error: ``` -------------------------------- ### Veo 3 Fast Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/veo-3-fast This example demonstrates how to make a POST request to the Veo 3 Fast endpoint. It includes a prompt, aspect ratio, duration, and specifies resolution and audio generation. The `X-Webhook-URL` header can be used to receive notifications upon job completion. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/video/google/veo-3-fast: post: tags: - Video summary: Veo 3 Fast description: |- Faster, affordable Veo 3 with audio. | Resolution | Audio | Duration | Compute Units | |------------|-------|----------|---------------| | 720p | No | 5s | 286 | | 720p | No | 6s | 344 | | 720p | No | 7s | 401 | | 720p | No | 8s | 458 | | 720p | Yes | 5s | 430 | | 720p | Yes | 6s | 515 | | 720p | Yes | 7s | 601 | | 720p | Yes | 8s | 687 | | 1080p | No | 5s | 286 | | 1080p | No | 6s | 344 | | 1080p | No | 7s | 401 | | 1080p | No | 8s | 458 | | 1080p | Yes | 5s | 430 | | 1080p | Yes | 6s | 515 | | 1080p | Yes | 7s | 601 | | 1080p | Yes | 8s | 687 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: startImage: type: string format: uri prompt: type: string aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' duration: type: number enum: - 4 - 6 - 8 default: 8 generateAudio: type: boolean default: false resolution: type: string enum: - 720p - 1080p default: 720p required: - prompt example: prompt: >- Samurai training under cherry blossoms, drawing inspiration from historical anime visuals. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: ``` -------------------------------- ### Veo 3 Video Generation Request Example Source: https://docs.krea.ai/api-reference/video/veo-3 This example demonstrates how to make a POST request to the Veo 3 video generation endpoint. It includes a prompt and specifies various parameters like duration, generateAudio, and resolution. The X-Webhook-URL header can be used to receive a notification upon job completion. ```yaml openapi: 3.1.0 info: title: Krea API version: v1 servers: - url: https://api.krea.ai description: Krea API security: - bearerAuth: [] tags: - name: General description: Core API operations including job management and billing information - name: Assets description: >- Asset management endpoints for uploading and managing images, videos, audio files, and 3D models - name: Styles description: Style (LoRA) generation and management endpoints - name: Node Apps description: Executing custom node apps built in our nodes tool - name: Image description: Image generation endpoints - name: Image Enhance description: Image enhance endpoints - name: Video description: Video generation endpoints - name: Styles description: Style (LoRA) generation and management endpoints paths: /generate/video/google/veo-3: post: tags: - Video summary: Veo 3 description: |- Older version of Veo 3.1. | Resolution | Audio | Duration | Compute Units | |------------|-------|----------|---------------| | 720p | No | 5s | 573 | | 720p | No | 6s | 687 | | 720p | No | 7s | 802 | | 720p | No | 8s | 916 | | 720p | Yes | 5s | 1145 | | 720p | Yes | 6s | 1375 | | 720p | Yes | 7s | 1604 | | 720p | Yes | 8s | 1833 | | 1080p | No | 5s | 573 | | 1080p | No | 6s | 687 | | 1080p | No | 7s | 802 | | 1080p | No | 8s | 916 | | 1080p | Yes | 5s | 1145 | | 1080p | Yes | 6s | 1375 | | 1080p | Yes | 7s | 1604 | | 1080p | Yes | 8s | 1833 | parameters: - name: X-Webhook-URL in: header required: false schema: type: string format: uri description: >- URL to receive a POST request when the job completes. The webhook will receive the job data including results. requestBody: content: application/json: schema: type: object properties: startImage: type: string format: uri prompt: type: string aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' duration: type: number enum: - 4 - 6 - 8 default: 8 generateAudio: type: boolean default: false resolution: type: string enum: - 720p - 1080p default: 720p required: - prompt example: prompt: Cliffside monasteries, seemingly defying gravity and time. responses: '200': description: >- The resulting job data. This will be returned in a pending state until the job is completed. See [`/jobs/{id}`](#tag/default/get/jobs/{id}) for retrieving the results. content: application/json: schema: type: object properties: job_id: type: string format: uuid status: type: string enum: - backlogged - queued - scheduled - processing - sampling - intermediate-complete - completed - failed - cancelled created_at: type: string format: date-time completed_at: type: 'null' result: type: 'null' required: - job_id - status - created_at - completed_at - result '400': description: The request body is invalid. content: application/json: schema: type: object properties: error: type: string required: - error '401': description: You are not authenticated. content: application/json: schema: type: object properties: error: ``` -------------------------------- ### Example Usage of HeroHeader Source: https://docs.krea.ai/developers/examples/image-to-image An example demonstrating how to use the HeroHeader component with an image, title, and description. This is typically used at the top of a page. ```html ``` -------------------------------- ### Image Generation Job Completed Response Example Source: https://docs.krea.ai/developers/examples/image-to-image This is an example of a successful response from the Krea AI API when an image generation job has completed. ```json { "created_at":"2026-02-13T02:20:58.265Z", "completed_at":"2026-02-13T02:21:21.948Z", "job_id":"757a315b-b3ed-457b-b1ba-cff5e140cfd4", "status":"completed", "type":"externalImage", "result": { "urls": [ "https://app-uploads.krea.ai/public/757a315b-b3ed-457b-b1ba-cff5e140cfd4-image.png" ] } } ``` -------------------------------- ### Webhook Payload Example Source: https://docs.krea.ai/developers/webhooks This is an example of the JSON payload received by your webhook URL when a job completes. It includes job status, timestamps, and results. ```json { "job_id": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "created_at": "2025-01-15T10:30:00.000Z", "completed_at": "2025-01-15T10:30:05.000Z", "result": { "urls": ["https://..."] } } ```