AI Image Generator API Docs
Image Editor API Docs
Image Colorizer API Docs
Fantasy World Generator API Docs
Super Resolution API Docs
Stable Diffusion API Docs
Waifu2x API Docs
Cyberpunk Generator API Docs
Cute Creature Generator API Docs
Fantasy Portrait Generator API Docs
Renaissance Painting Generator API Docs
Comics Portrait Generator API Docs
Old Drawing Generator API Docs
Cyberpunk Portrait Generator API Docs
Anime Portrait Generator API Docs
Contemporary Architecture Generator API Docs
Surreal Graphics Generator API Docs
3d Objects Generator API Docs
Impressionism Painting Generator API Docs
AI Logo Generator API Docs
Abstract Painting Generator API Docs
Watercolor Painting Generator API Docs
3D Character Generator API Docs
Surreal Portrait Generator API Docs
Future Architecture Generator API Docs
Anime World Generator API Docs
Fantasy Character Generator API Docs
Steampunk Generator API Docs
Watercolor Architecture Generator API Docs
Pop Art Generator API Docs
3D Origami Generator API Docs
Street Art Generator API Docs
Pixel Art Generator API Docs
3D Hologram Generator API Docs
Neo Noir Generator API Docs
Mythic Creature Generator API Docs
Anime Superhero Generator API Docs
Manga Panel Generator API Docs
Gothic Art Generator API Docs
Fantasy Map Generator API Docs
Terrarium World Generator API Docs
Elven World Generator API Docs
Witchcraft Symbol Generator API Docs
Post-Apocalyptic Art Generator API Docs
Alien Flora Generator API Docs
Dreamscape Generator API Docs
Chibi Character Generator API Docs
Haunted Portrait Generator API Docs
Art Deco Generator API Docs
Tribal Art Generator API Docs
Prophetic Vision Generator API Docs
Dystopian Landscape Generator API Docs
Pixel World Generator API Docs
Gothic Architecture Generator API Docs
Giant Robot Battle Generator API Docs
Dystopian Cyberpunk Generator API Docs
Decoupage Art Generator API Docs
Mars Life Generator API Docs
Zentangle Design Generator API Docs
Marionette Design Generator API Docs
Surrealist Sculpture Generator API Docs
Zombie Apocalypse Scene Generator API Docs
Retro Game Art Generator API Docs
Old Masters Art generator API Docs
Fairy Tale Art Generator API Docs
Renaissance Fresco Generator API Docs
Gladiator Arena Generator API Docs
Supernatural Character Generator API Docs
Abstract Expressionism Generator API Docs
Mecha Suit Generator API Docs
Photorealistic Portrait Generator API Docs
Romantic Art Generator API Docs
Baroque Art Generator API Docs
Children’s Book Illustration Generator API Docs
Mysticism Art Generator API Docs
Grotesque Art Generator API Docs
Comics Superhero Generator API Docs
Space World Generator API Docs
Cyber Beast Generator API Docs
3D Cartoon Character Generator API Docs
Vintage Playing Card Generator API Docs
Treehouse Design Generator API Docs
Political Satire Cartoon Generator API Docs
Tropical Paradise Generator API Docs
Unreal Cityscape Generator API Docs
Gothic Literature Art Generator API Docs
Alien Civilization Generator API Docs
Psychedelic Poster Generator API Docs
Samurai Art Generator API Docs
Atlantis World Generator API Docs
Intergalactic Battle Generator API Docs
Ice World Generator API Docs
Bioluminescent Life Generator API Docs
Concrete Jungle Generator API Docs
Vintage Film Poster Generator API Docs
Action Figure Generator API Docs
Cubist Art Generator API Docs
Art Nouveau Generator API Docs
Steampunk Landscape Generator API Docs
Ocean Life Generator API Docs
Zodiac Design Generator API Docs
Film Photo Collage Generator API Docs
Ancient Mayan Art Generator API Docs
Brutalist Architecture Generator API Docs
Post-Impressionist Painting Generator API Docs
Ancient Hieroglyph Generator API Docs
Opera Costume Generator API Docs
Spaceship Blueprint Generator API Docs
Underground Cityscape Generator API Docs
Greek Mythology Character Generator API Docs
Origami Paper Art Generator API Docs
Wild West Generator API Docs
Urban Graffiti Generator API Docs
Ancient Egyptian Art Generator API Docs
Depths of the Sea Generator API Docs
Solar System Generator API Docs
Minimalistic Art Generator API Docs
Urban Fashion Generator API Docs
Clockwork Toy Generator API Docs
Colonial Portrait Generator API Docs
Mechanical Anatomy Generator API Docs
Solar Flare Generator API Docs
Ice Art Sculpture Generator API Docs
Bauhaus Design Generator API Docs
Food Art Sculpture Generator API Docs
Carnival Scene Generator API Docs
Stained Glass Window Generator API Docs
Cave Painting Generator API Docs
Kawaii Emoji Generator API Docs
Victorian Art Generator API Docs
AI Image Generator
This is an AI Image Generator. It creates an image from scratch from a text description.
Yes, this is the one you've been waiting for. This text to image generator uses AI to understand your words and convert them to a unique image each time. Like magic.
This can be used to generate AI art, or for general silliness.
Don't expect the quality to be photorealistic, however. You would need a really really big AI to do that, and have you priced those lately?
If you can't think of something, try "Balloon in the shape of X" where X is something you wouldn't find in balloon form.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/text2img
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/text2img
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/text2img
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/text2img', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/text2img', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/text2img', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/text2img', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/text2img",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/text2img",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/text2img",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/text2img', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/text2img', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/text2img', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Image Editor
Edit images with AI.
cURL Examples
# Example posting a image URL:
curl \
-F 'image=YOUR_IMAGE_URL' \
-F 'text=YOUR_IMAGE_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/image-editor
# Example posting a local image file:
curl \
-F 'image=@/path/to/your/file.jpg' \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/image-editor
Javascript Examples
// Example posting a image URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/image-editor', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
image: "YOUR_IMAGE_URL",
text: "YOUR_IMAGE_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input image (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/image-editor', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local image file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/image-editor', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
Python Examples
# Example posting a image URL:
import requests
r = requests.post(
"https://api.deepai.org/api/image-editor",
data={
'image': 'YOUR_IMAGE_URL',
'text': 'YOUR_IMAGE_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local image file:
import requests
r = requests.post(
"https://api.deepai.org/api/image-editor",
files={
'image': open('/path/to/your/file.jpg', 'rb'),
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a image URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/image-editor', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => 'YOUR_IMAGE_URL',
'text' => 'YOUR_IMAGE_URL',
}
)
puts r
# Example posting a local image file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/image-editor', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => File.new('/path/to/your/file.jpg'),
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
Image Colorizer
Colorize black and white images or videos using the image colorizer. Add color to old family photos and historic images, or bring an old film back to life with colorization. This image colorization API is a deep learning model that has been trained on pairs of color images with their grayscale counterpart. After hours of training, the models learns how to add color back to black and white images.
cURL Examples
# Example posting a image URL:
curl \
-F 'image=YOUR_IMAGE_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/colorizer
# Example posting a local image file:
curl \
-F 'image=@/path/to/your/file.jpg' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/colorizer
Javascript Examples
// Example posting a image URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/colorizer', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
image: "YOUR_IMAGE_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input image (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/colorizer', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local image file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/colorizer', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
Python Examples
# Example posting a image URL:
import requests
r = requests.post(
"https://api.deepai.org/api/colorizer",
data={
'image': 'YOUR_IMAGE_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local image file:
import requests
r = requests.post(
"https://api.deepai.org/api/colorizer",
files={
'image': open('/path/to/your/file.jpg', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a image URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/colorizer', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => 'YOUR_IMAGE_URL',
}
)
puts r
# Example posting a local image file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/colorizer', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => File.new('/path/to/your/file.jpg'),
}
)
puts r
Fantasy World Generator
Generate an image in fantasy style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-world-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-world-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-world-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/fantasy-world-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/fantasy-world-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-world-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-world-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-world-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Super Resolution
The Super Resolution API uses machine learning to clarify, sharpen, and upscale the photo without losing its content and defining characteristics. Blurry images are unfortunately common and are a problem for professionals and hobbyists alike. Super resolution uses machine learning techniques to upscale images in a fraction of a second.
cURL Examples
# Example posting a image URL:
curl \
-F 'image=YOUR_IMAGE_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/torch-srgan
# Example posting a local image file:
curl \
-F 'image=@/path/to/your/file.jpg' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/torch-srgan
Javascript Examples
// Example posting a image URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/torch-srgan', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
image: "YOUR_IMAGE_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input image (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/torch-srgan', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local image file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/torch-srgan', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
Python Examples
# Example posting a image URL:
import requests
r = requests.post(
"https://api.deepai.org/api/torch-srgan",
data={
'image': 'YOUR_IMAGE_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local image file:
import requests
r = requests.post(
"https://api.deepai.org/api/torch-srgan",
files={
'image': open('/path/to/your/file.jpg', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a image URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/torch-srgan', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => 'YOUR_IMAGE_URL',
}
)
puts r
# Example posting a local image file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/torch-srgan', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => File.new('/path/to/your/file.jpg'),
}
)
puts r
Stable Diffusion
Stable Diffusion is a deep learning based, text-to-image model. It is primarily used to generate detailed images conditioned on text descriptions.
This Stable Diffusion model supports the ability to generate new images from scratch through the use of a text prompt describing elements to be included or omitted from the output.
Unlike models like DALL-E, Stable Diffusion makes its source code available.
Stable Diffusion was trained on pairs of images and captions taken from LAION-5B.
Please see the license terms here: https://raw.githubusercontent.com/CompVis/stable-diffusion/main/LICENSE
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/stable-diffusion
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/stable-diffusion
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/stable-diffusion
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/stable-diffusion', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/stable-diffusion', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/stable-diffusion', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/stable-diffusion', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/stable-diffusion",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/stable-diffusion",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/stable-diffusion",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/stable-diffusion', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/stable-diffusion', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/stable-diffusion', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Waifu2x
Waifu2x is an algorithm that upscales images while reducing noise within the image. It gets its name from the anime-style art known as 'waifu' that it was largely trained on. Even though waifus made up most of the training data, this waifu2x api still performs well on photographs and other types of imagery. You can use Waifu2x to double the size of your images while reducing noise.
cURL Examples
# Example posting a image URL:
curl \
-F 'image=YOUR_IMAGE_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/waifu2x
# Example posting a local image file:
curl \
-F 'image=@/path/to/your/file.jpg' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/waifu2x
Javascript Examples
// Example posting a image URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/waifu2x', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
image: "YOUR_IMAGE_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input image (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/waifu2x', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local image file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/waifu2x', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
Python Examples
# Example posting a image URL:
import requests
r = requests.post(
"https://api.deepai.org/api/waifu2x",
data={
'image': 'YOUR_IMAGE_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local image file:
import requests
r = requests.post(
"https://api.deepai.org/api/waifu2x",
files={
'image': open('/path/to/your/file.jpg', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a image URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/waifu2x', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => 'YOUR_IMAGE_URL',
}
)
puts r
# Example posting a local image file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/waifu2x', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'image' => File.new('/path/to/your/file.jpg'),
}
)
puts r
Cyberpunk Generator
Generate an image in cyberpunk style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cyberpunk-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/cyberpunk-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/cyberpunk-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cyberpunk-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Cute Creature Generator
Generate an image of a cute animal.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cute-creature-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cute-creature-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cute-creature-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cute-creature-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/cute-creature-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/cute-creature-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cute-creature-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/cute-creature-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/cute-creature-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/cute-creature-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cute-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cute-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cute-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Fantasy Portrait Generator
Generate a portrait in fantasy style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/fantasy-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/fantasy-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Renaissance Painting Generator
Generate a renaissance painting.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/renaissance-painting-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/renaissance-painting-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/renaissance-painting-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/renaissance-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/renaissance-painting-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/renaissance-painting-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/renaissance-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/renaissance-painting-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/renaissance-painting-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/renaissance-painting-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/renaissance-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/renaissance-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/renaissance-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Comics Portrait Generator
Generate a portrait in comics style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/comics-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/comics-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/comics-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/comics-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/comics-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/comics-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/comics-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/comics-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/comics-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/comics-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/comics-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/comics-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/comics-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Old Drawing Generator
Generate an image in 18th century drawing style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/old-style-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/old-style-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/old-style-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/old-style-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/old-style-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/old-style-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/old-style-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/old-style-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/old-style-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/old-style-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/old-style-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/old-style-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/old-style-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Cyberpunk Portrait Generator
Generate a portrait in cyberpunk style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/cyberpunk-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cyberpunk-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/cyberpunk-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/cyberpunk-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/cyberpunk-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/cyberpunk-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/cyberpunk-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Anime Portrait Generator
Generate a hyper-realistic portrait in anime style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/anime-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/anime-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Contemporary Architecture Generator
Generate contemporary architecture concept image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/contemporary-architecture-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/contemporary-architecture-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/contemporary-architecture-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/contemporary-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/contemporary-architecture-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/contemporary-architecture-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/contemporary-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/contemporary-architecture-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/contemporary-architecture-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/contemporary-architecture-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/contemporary-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/contemporary-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/contemporary-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Surreal Graphics Generator
Generate detailed surreal graphics.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-graphics-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-graphics-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-graphics-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/surreal-graphics-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/surreal-graphics-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/surreal-graphics-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/surreal-graphics-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-graphics-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-graphics-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-graphics-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-graphics-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-graphics-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-graphics-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
3d Objects Generator
Generate a highly detailed 3d image of any object.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-objects-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-objects-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-objects-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/3d-objects-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/3d-objects-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/3d-objects-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/3d-objects-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-objects-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-objects-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-objects-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-objects-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-objects-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-objects-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Impressionism Painting Generator
Generate an impressionism painting.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/impressionism-painting-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/impressionism-painting-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/impressionism-painting-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/impressionism-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/impressionism-painting-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/impressionism-painting-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/impressionism-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/impressionism-painting-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/impressionism-painting-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/impressionism-painting-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/impressionism-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/impressionism-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/impressionism-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
AI Logo Generator
Generate a logo concept image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/logo-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/logo-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/logo-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/logo-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/logo-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/logo-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/logo-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/logo-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/logo-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/logo-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/logo-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/logo-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/logo-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Abstract Painting Generator
Generate an abstract painting.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/abstract-painting-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/abstract-painting-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/abstract-painting-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/abstract-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/abstract-painting-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/abstract-painting-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/abstract-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/abstract-painting-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/abstract-painting-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/abstract-painting-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/abstract-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/abstract-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/abstract-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Watercolor Painting Generator
Generate a watercolor painting.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-painting-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-painting-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-painting-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/watercolor-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/watercolor-painting-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/watercolor-painting-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/watercolor-painting-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-painting-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-painting-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-painting-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-painting-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
3D Character Generator
Generate a 3D character design.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-character-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-character-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/3d-character-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/3d-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/3d-character-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/3d-character-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/3d-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-character-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-character-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/3d-character-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/3d-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Surreal Portrait Generator
Generate surreal portrait image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/surreal-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/surreal-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/surreal-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/surreal-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/surreal-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/surreal-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/surreal-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Future Architecture Generator
Generate future architecture design concept image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/future-architecture-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/future-architecture-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/future-architecture-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/future-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/future-architecture-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/future-architecture-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/future-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/future-architecture-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/future-architecture-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/future-architecture-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/future-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/future-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/future-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Anime World Generator
Generate anime style world image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-world-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-world-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-world-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/anime-world-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/anime-world-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-world-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-world-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-world-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Fantasy Character Generator
Generate a character in fantasy style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-character-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-character-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-character-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/fantasy-character-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/fantasy-character-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-character-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-character-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-character-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Steampunk Generator
Generate an image in steampunk style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/steampunk-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/steampunk-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/steampunk-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/steampunk-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/steampunk-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/steampunk-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/steampunk-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/steampunk-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/steampunk-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/steampunk-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/steampunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/steampunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/steampunk-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Watercolor Architecture Generator
Generate watercolor architecture concept image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-architecture-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-architecture-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/watercolor-architecture-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/watercolor-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/watercolor-architecture-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/watercolor-architecture-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/watercolor-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-architecture-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-architecture-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/watercolor-architecture-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/watercolor-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Pop Art Generator
Generate pop art comic style image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pop-art-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pop-art-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pop-art-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pop-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/pop-art-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/pop-art-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pop-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/pop-art-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/pop-art-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/pop-art-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pop-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pop-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pop-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
3D Origami Generator
Generate a 3D origami style character.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/origami-3d-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/origami-3d-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/origami-3d-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/origami-3d-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/origami-3d-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/origami-3d-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/origami-3d-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/origami-3d-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/origami-3d-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/origami-3d-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/origami-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/origami-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/origami-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Street Art Generator
Generate a street art style image.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/street-art-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/street-art-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/street-art-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/street-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/street-art-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/street-art-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/street-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/street-art-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/street-art-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/street-art-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/street-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/street-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/street-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Pixel Art Generator
Generate an image pixel art style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-art-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-art-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-art-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pixel-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/pixel-art-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/pixel-art-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pixel-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-art-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-art-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-art-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
3D Hologram Generator
Generate a 3D hologram in neon colors.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/hologram-3d-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/hologram-3d-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/hologram-3d-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/hologram-3d-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/hologram-3d-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/hologram-3d-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/hologram-3d-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/hologram-3d-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/hologram-3d-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/hologram-3d-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/hologram-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/hologram-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/hologram-3d-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Neo Noir Generator
Generate a neo noir style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/neo-noir-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/neo-noir-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/neo-noir-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/neo-noir-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/neo-noir-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/neo-noir-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/neo-noir-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/neo-noir-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/neo-noir-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/neo-noir-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/neo-noir-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/neo-noir-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/neo-noir-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Mythic Creature Generator
Generate a mythical creature.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/mythic-creature-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/mythic-creature-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/mythic-creature-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/mythic-creature-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/mythic-creature-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/mythic-creature-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/mythic-creature-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/mythic-creature-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/mythic-creature-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/mythic-creature-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/mythic-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/mythic-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/mythic-creature-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Anime Superhero Generator
Generate an anime style superhero.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-superhero-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-superhero-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/anime-superhero-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-superhero-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/anime-superhero-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/anime-superhero-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/anime-superhero-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-superhero-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-superhero-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/anime-superhero-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-superhero-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-superhero-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/anime-superhero-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Manga Panel Generator
Generate a manga panel.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/manga-panel-genarator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/manga-panel-genarator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/manga-panel-genarator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/manga-panel-genarator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/manga-panel-genarator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/manga-panel-genarator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/manga-panel-genarator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/manga-panel-genarator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/manga-panel-genarator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/manga-panel-genarator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/manga-panel-genarator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/manga-panel-genarator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/manga-panel-genarator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Gothic Art Generator
Generate a gothic art style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-art-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-art-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-art-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/gothic-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/gothic-art-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/gothic-art-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/gothic-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-art-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-art-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-art-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Fantasy Map Generator
Generate a fantasy map style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-map-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-map-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/fantasy-map-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-map-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/fantasy-map-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/fantasy-map-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/fantasy-map-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-map-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-map-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/fantasy-map-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-map-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-map-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/fantasy-map-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Terrarium World Generator
Generate a terrarium world style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/terrarium-world-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/terrarium-world-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/terrarium-world-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/terrarium-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/terrarium-world-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/terrarium-world-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/terrarium-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/terrarium-world-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/terrarium-world-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/terrarium-world-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/terrarium-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/terrarium-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/terrarium-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Elven World Generator
Generate an elven world style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/elven-world-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/elven-world-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/elven-world-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/elven-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/elven-world-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/elven-world-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/elven-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/elven-world-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/elven-world-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/elven-world-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/elven-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/elven-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/elven-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Witchcraft Symbol Generator
Generate a witchcraft symbol style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/witchcraft-symbol-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/witchcraft-symbol-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/witchcraft-symbol-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/witchcraft-symbol-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/witchcraft-symbol-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/witchcraft-symbol-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/witchcraft-symbol-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/witchcraft-symbol-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/witchcraft-symbol-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/witchcraft-symbol-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/witchcraft-symbol-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/witchcraft-symbol-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/witchcraft-symbol-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Post-Apocalyptic Art Generator
Generate post-apocalyptic scene.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/post-apocalyptic-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/post-apocalyptic-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/post-apocalyptic-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/post-apocalyptic-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/post-apocalyptic-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/post-apocalyptic-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/post-apocalyptic-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/post-apocalyptic-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/post-apocalyptic-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/post-apocalyptic-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/post-apocalyptic-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/post-apocalyptic-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/post-apocalyptic-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Alien Flora Generator
Generate an alien flora style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/alien-flora-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/alien-flora-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/alien-flora-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/alien-flora-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/alien-flora-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/alien-flora-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/alien-flora-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/alien-flora-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/alien-flora-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/alien-flora-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/alien-flora-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/alien-flora-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/alien-flora-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Dreamscape Generator
Generate a surrealistic dreamscape.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dreamscape-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dreamscape-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dreamscape-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/dreamscape-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/dreamscape-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/dreamscape-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/dreamscape-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/dreamscape-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/dreamscape-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/dreamscape-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dreamscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dreamscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dreamscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Chibi Character Generator
Generate a chibi style character.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/chibi-character-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/chibi-character-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/chibi-character-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/chibi-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/chibi-character-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/chibi-character-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/chibi-character-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/chibi-character-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/chibi-character-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/chibi-character-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/chibi-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/chibi-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/chibi-character-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Haunted Portrait Generator
Generate a haunted portrait.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/haunted-portrait-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/haunted-portrait-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/haunted-portrait-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/haunted-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/haunted-portrait-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/haunted-portrait-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/haunted-portrait-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/haunted-portrait-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/haunted-portrait-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/haunted-portrait-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/haunted-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/haunted-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/haunted-portrait-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Art Deco Generator
Generate an art deco space.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/art-deco-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/art-deco-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/art-deco-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/art-deco-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/art-deco-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/art-deco-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/art-deco-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/art-deco-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/art-deco-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/art-deco-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/art-deco-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/art-deco-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/art-deco-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Tribal Art Generator
Generate a tribal art style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/tribal-art-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/tribal-art-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/tribal-art-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/tribal-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/tribal-art-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/tribal-art-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/tribal-art-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/tribal-art-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/tribal-art-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/tribal-art-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/tribal-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/tribal-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/tribal-art-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Prophetic Vision Generator
Generate a dreamy vision style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/prophetic-vision-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/prophetic-vision-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/prophetic-vision-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/prophetic-vision-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/prophetic-vision-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/prophetic-vision-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/prophetic-vision-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/prophetic-vision-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/prophetic-vision-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/prophetic-vision-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/prophetic-vision-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/prophetic-vision-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/prophetic-vision-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Dystopian Landscape Generator
Generate a dystopian landscape style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dystopian-landscape-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dystopian-landscape-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/dystopian-landscape-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/dystopian-landscape-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/dystopian-landscape-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/dystopian-landscape-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/dystopian-landscape-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/dystopian-landscape-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/dystopian-landscape-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/dystopian-landscape-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dystopian-landscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dystopian-landscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/dystopian-landscape-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Pixel World Generator
Generate a world in pixel art style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-world-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-world-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/pixel-world-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pixel-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/pixel-world-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/pixel-world-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/pixel-world-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-world-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-world-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/pixel-world-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/pixel-world-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Gothic Architecture Generator
Generate a gothic architecture style.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-architecture-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-architecture-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/gothic-architecture-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/gothic-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log(data);
})()
// Example posting file picker input text (Browser only):
document.getElementById('yourFileInputId').addEventListener('change', async function() {
const file = this.files[0];
const formData = new FormData();
formData.append('text', file);
const resp = await fetch('https://api.deepai.org/api/gothic-architecture-generator', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY'
},
body: formData
});
const data = await resp.json();
console.log(data);
});
// Example posting a local text file (Node.js only):
const fs = require('fs');
const axios = require('axios');
(async function() {
const fileStream = fs.createReadStream('/path/to/your/file.txt');
const resp = await axios.post('https://api.deepai.org/api/gothic-architecture-generator', fileStream, {
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
}
});
console.log(resp.data);
});
// Example directly sending a text string:
(async function() {
const resp = await fetch('https://api.deepai.org/api/gothic-architecture-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_HERE",
})
});
const data = await resp.json();
console.log(data);
})()
Python Examples
# Example posting a text URL:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-architecture-generator",
data={
'text': 'YOUR_TEXT_URL',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example posting a local text file:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-architecture-generator",
files={
'text': open('/path/to/your/file.txt', 'rb'),
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
# Example directly sending a text string:
import requests
r = requests.post(
"https://api.deepai.org/api/gothic-architecture-generator",
data={
'text': 'YOUR_TEXT_HERE',
},
headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())
Ruby Examples
# Example posting a text URL:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_URL',
}
)
puts r
# Example posting a local text file:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => File.new('/path/to/your/file.txt'),
}
)
puts r
# Example directly sending a text string:
require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/gothic-architecture-generator', timeout: 600,
headers: {'api-key' => 'YOUR_API_KEY'},
payload: {
'text' => 'YOUR_TEXT_HERE',
}
)
puts r
Giant Robot Battle Generator
Generate a giant robot battle scene.
cURL Examples
# Example posting a text URL:
curl \
-F 'text=YOUR_TEXT_URL' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/robot-battle-generator
# Example posting a local text file:
curl \
-F 'text=@/path/to/your/file.txt' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/robot-battle-generator
# Example directly sending a text string:
curl \
-F 'text=YOUR_TEXT_HERE' \
-H 'api-key:YOUR_API_KEY' \
https://api.deepai.org/api/robot-battle-generator
Javascript Examples
// Example posting a text URL:
(async function() {
const resp = await fetch('https://api.deepai.org/api/robot-battle-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: "YOUR_TEXT_URL",
})
});
const data = await resp.json();
console.log