Documentation
Welcome to Deep Creative Labs API. Build powerful AI-powered applications with our image and video generation API.
Quick Start
Get your first prediction running in 5 minutes
API Reference
Complete reference for all API endpoints
Quick Example
Node.js
1// Create a new prediction
2const response = await fetch('https://api.deepcreativelabs.com/v1/google/nano-banana/predictions', {
3 method: 'POST',
4 headers: {
5 'Authorization': 'Bearer YOUR_API_KEY', // Your API key
6 'Content-Type': 'application/json',
7 },
8 body: JSON.stringify({
9 input: {
10 prompt: 'A serene Japanese garden with cherry blossoms' // Image description
11 }
12 })
13});
14
15const prediction = await response.json();
16console.log(prediction.job_id); // pred_abc123
17
18// Get the result
19const result = await fetch(
20 `https://api.deepcreativelabs.com/v1/predictions/${prediction.job_id}`,
21 { headers: { 'Authorization': 'Bearer YOUR_API_KEY' }}
22);
23
24const data = await result.json();
25console.log(data.output); // Generated image URLsBase URL
https://api.deepcreativelabs.com/v1