AI Image Generator API Docs
Image Editor API Docs
Image Colorization 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
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
Elven World Generator API Docs
Post-Apocalyptic Art Generator API Docs
Haunted Portrait Generator API Docs
Dystopian Landscape Generator API Docs
Gothic Architecture Generator API Docs
Terrarium World Generator API Docs
Zentangle Design Generator API Docs
Witchcraft Symbol Generator API Docs
Renaissance Fresco Generator API Docs
Alien Flora Generator API Docs
Gladiator Arena Generator API Docs
Supernatural Character Generator API Docs
Mecha Suit Generator API Docs
Chibi Character Generator API Docs
Romantic Art Generator API Docs
Mysticism Art Generator API Docs
Tribal Art Generator API Docs
Grotesque Art Generator API Docs
Prophetic Vision Generator API Docs
Comics Superhero Generator API Docs
Space World Generator API Docs
Pixel World Generator API Docs
Giant Robot Battle Generator API Docs
Dystopian Cyberpunk Generator API Docs
Decoupage Art Generator API Docs
Treehouse Design Generator API Docs
Political Satire Cartoon Generator API Docs
Mars Life Generator API Docs
Tropical Paradise Generator API Docs
Marionette Design Generator API Docs
Gothic Literature Art Generator API Docs
Surrealist Sculpture Generator API Docs
Alien Civilization Generator API Docs
Samurai Art Generator API Docs
Atlantis World Generator API Docs
Intergalactic Battle Generator API Docs
Ice World Generator API Docs
Zombie Apocalypse Scene Generator API Docs
Action Figure Generator API Docs
Retro Game Art Generator API Docs
Old Masters Art generator API Docs
Fairy Tale Art Generator API Docs
Abstract Expressionism Generator API Docs
Dreamscape Generator API Docs
Photorealistic Portrait Generator API Docs
Baroque Art Generator API Docs
Art Deco Generator API Docs
Children’s Book Illustration Generator API Docs
Ocean Life Generator API Docs
Cyber Beast Generator API Docs
3D Cartoon Character Generator API Docs
Vintage Playing Card Generator API Docs
Zodiac Design Generator API Docs
Film Photo Collage Generator API Docs
Ancient Mayan Art Generator API Docs
Unreal Cityscape Generator API Docs
Psychedelic Poster Generator API Docs
Ancient Hieroglyph Generator API Docs
Opera Costume Generator API Docs
Bioluminescent Life Generator API Docs
Concrete Jungle Generator API Docs
Vintage Film Poster Generator API Docs
Greek Mythology Character 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
Cubist Art Generator API Docs
Art Nouveau Generator API Docs
Steampunk Landscape Generator API Docs
Urban Fashion Generator API Docs
Brutalist Architecture Generator API Docs
Post-Impressionist Painting 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
Food Art Sculpture Generator API Docs
Spaceship Blueprint Generator API Docs
Underground Cityscape Generator API Docs
Carnival Scene Generator API Docs
Origami Paper Art Generator API Docs
Minimalistic Art Generator API Docs
Stained Glass Window Generator API Docs
Cave Painting Generator API Docs
Kawaii Emoji Generator API Docs
Bauhaus Design 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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("text2img", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("text2img", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("text2img", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("text2img", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("text2img", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("text2img", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("text2img", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a image URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("image-editor", {
image: "YOUR_IMAGE_URL",
text: "YOUR_IMAGE_URL",
});
console.log(resp);
})()
// Example posting file picker input image (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("image-editor", {
image: document.getElementById('yourFileInputId'),
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local image file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("image-editor", {
image: fs.createReadStream("/path/to/your/file.jpg"),
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a image URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("image-editor", new {
image = "YOUR_IMAGE_URL",
text = "YOUR_IMAGE_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local image file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("image-editor", new {
image = File.OpenRead("C:\\path\\to\\your\\file.jpg"),
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
Image Colorization
Colorize black and white images or videos using the image colorization API. 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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a image URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: "YOUR_IMAGE_URL",
});
console.log(resp);
})()
// Example posting file picker input image (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local image file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: fs.createReadStream("/path/to/your/file.jpg"),
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a image URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("colorizer", new {
image = "YOUR_IMAGE_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local image file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("colorizer", new {
image = File.OpenRead("C:\\path\\to\\your\\file.jpg"),
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-world-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-world-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-world-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-world-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-world-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-world-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-world-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a image URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("torch-srgan", {
image: "YOUR_IMAGE_URL",
});
console.log(resp);
})()
// Example posting file picker input image (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("torch-srgan", {
image: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local image file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("torch-srgan", {
image: fs.createReadStream("/path/to/your/file.jpg"),
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a image URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("torch-srgan", new {
image = "YOUR_IMAGE_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local image file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("torch-srgan", new {
image = File.OpenRead("C:\\path\\to\\your\\file.jpg"),
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("stable-diffusion", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("stable-diffusion", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("stable-diffusion", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("stable-diffusion", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("stable-diffusion", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("stable-diffusion", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("stable-diffusion", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a image URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("waifu2x", {
image: "YOUR_IMAGE_URL",
});
console.log(resp);
})()
// Example posting file picker input image (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("waifu2x", {
image: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local image file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("waifu2x", {
image: fs.createReadStream("/path/to/your/file.jpg"),
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a image URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("waifu2x", new {
image = "YOUR_IMAGE_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local image file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("waifu2x", new {
image = File.OpenRead("C:\\path\\to\\your\\file.jpg"),
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cute-creature-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cute-creature-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cute-creature-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cute-creature-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cute-creature-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cute-creature-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cute-creature-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("renaissance-painting-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("renaissance-painting-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("renaissance-painting-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("renaissance-painting-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("renaissance-painting-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("renaissance-painting-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("renaissance-painting-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("comics-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("comics-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("comics-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("comics-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("comics-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("comics-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("comics-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("old-style-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("old-style-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("old-style-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("old-style-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("old-style-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("old-style-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("old-style-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("cyberpunk-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("cyberpunk-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("contemporary-architecture-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("contemporary-architecture-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("contemporary-architecture-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("contemporary-architecture-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("contemporary-architecture-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("contemporary-architecture-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("contemporary-architecture-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-graphics-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-graphics-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-graphics-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-graphics-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-graphics-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-graphics-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-graphics-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-objects-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-objects-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-objects-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-objects-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-objects-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-objects-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-objects-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("impressionism-painting-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("impressionism-painting-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("impressionism-painting-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("impressionism-painting-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("impressionism-painting-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("impressionism-painting-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("impressionism-painting-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("logo-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("logo-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("logo-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("logo-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("logo-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("logo-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("logo-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("abstract-painting-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("abstract-painting-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("abstract-painting-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("abstract-painting-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("abstract-painting-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("abstract-painting-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("abstract-painting-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-painting-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-painting-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-painting-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-painting-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-painting-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-painting-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-painting-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-character-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-character-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-character-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("3d-character-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-character-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-character-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("3d-character-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("surreal-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("surreal-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("future-architecture-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("future-architecture-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("future-architecture-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("future-architecture-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("future-architecture-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("future-architecture-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("future-architecture-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-world-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-world-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-world-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-world-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-world-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-world-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-world-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-character-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-character-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-character-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-character-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-character-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-character-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-character-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("steampunk-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("steampunk-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("steampunk-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("steampunk-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("steampunk-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("steampunk-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("steampunk-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-architecture-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-architecture-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-architecture-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("watercolor-architecture-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-architecture-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-architecture-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("watercolor-architecture-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pop-art-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pop-art-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pop-art-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pop-art-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pop-art-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pop-art-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pop-art-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("origami-3d-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("origami-3d-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("origami-3d-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("origami-3d-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("origami-3d-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("origami-3d-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("origami-3d-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("street-art-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("street-art-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("street-art-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("street-art-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("street-art-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("street-art-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("street-art-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pixel-art-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pixel-art-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pixel-art-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("pixel-art-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pixel-art-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pixel-art-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("pixel-art-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("hologram-3d-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("hologram-3d-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("hologram-3d-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("hologram-3d-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("hologram-3d-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("hologram-3d-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("hologram-3d-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("neo-noir-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("neo-noir-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("neo-noir-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("neo-noir-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("neo-noir-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("neo-noir-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("neo-noir-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("mythic-creature-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("mythic-creature-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("mythic-creature-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("mythic-creature-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("mythic-creature-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("mythic-creature-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("mythic-creature-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-superhero-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-superhero-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-superhero-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("anime-superhero-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-superhero-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-superhero-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("anime-superhero-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("manga-panel-genarator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("manga-panel-genarator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("manga-panel-genarator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("manga-panel-genarator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("manga-panel-genarator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("manga-panel-genarator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("manga-panel-genarator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("gothic-art-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("gothic-art-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("gothic-art-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("gothic-art-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("gothic-art-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("gothic-art-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("gothic-art-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-map-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-map-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-map-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("fantasy-map-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-map-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-map-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("fantasy-map-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("elven-world-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("elven-world-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("elven-world-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("elven-world-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("elven-world-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("elven-world-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("elven-world-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("post-apocalyptic-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("post-apocalyptic-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("post-apocalyptic-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("post-apocalyptic-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("post-apocalyptic-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("post-apocalyptic-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("post-apocalyptic-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a text URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("haunted-portrait-generator", {
text: "YOUR_TEXT_URL",
});
console.log(resp);
})()
// Example posting file picker input text (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("haunted-portrait-generator", {
text: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local text file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("haunted-portrait-generator", {
text: fs.createReadStream("/path/to/your/file.txt"),
});
console.log(resp);
})()
// Example directly sending a text string:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('YOUR_API_KEY');
(async function() {
var resp = await deepai.callStandardApi("haunted-portrait-generator", {
text: "YOUR_TEXT_HERE",
});
console.log(resp);
})()
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
Csharp Examples
// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a text URL:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("haunted-portrait-generator", new {
text = "YOUR_TEXT_URL",
});
Console.Write(api.objectAsJsonString(resp));
// Example posting a local text file:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("haunted-portrait-generator", new {
text = File.OpenRead("C:\\path\\to\\your\\file.txt"),
});
Console.Write(api.objectAsJsonString(resp));
// Example directly sending a text string:
using DeepAI; // Add this line to the top of your file
DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");
StandardApiResponse resp = api.callStandardApi("haunted-portrait-generator", new {
text = "YOUR_TEXT_HERE",
});
Console.Write(api.objectAsJsonString(resp));
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
// Get the 'deepai' package here (Compatible with