deepai.org Open in urlscan Pro
2600:9000:223c:6800:14:1028:f240:93a1  Public Scan

URL: https://deepai.org/machine-learning-model/text2img
Submission: On November 10 via manual from DK — Scanned from DK

Form analysis 0 forms found in the DOM

Text Content

WE VALUE YOUR PRIVACY

We and our partners store and/or access information on a device, such as cookies
and process personal data, such as unique identifiers and standard information
sent by a device for personalised ads and content, ad and content measurement,
and audience insights, as well as to develop and improve products. With your
permission we and our partners may use precise geolocation data and
identification through device scanning. You may click to consent to our and our
partners’ processing as described above. Alternatively you may access more
detailed information and change your preferences before consenting or to refuse
consenting. Please note that some processing of your personal data may not
require your consent, but you have a right to object to such processing. Your
preferences will apply to this website only. You can change your preferences at
any time by returning to this site or visit our privacy policy.
MORE OPTIONSAGREE

AI Chat Login

 * View Profile
   AI Generators Pricing Glossary API Docs
   
   Login


AI IMAGE GENERATOR - TEXT TO IMAGE




CREATE AN IMAGE FROM TEXT PROMPT


CHOOSE A MODEL

Standard


HD


CHOOSE A STYLE

Click to explore a gallery of styles
The selected style is only available to PRO users. Please upgrade or try a
different style
Options


SELECT SHAPE:


Illusions

NEW


Generate
Download ⬇ Enhance ✦

SEE WHAT AI ART OTHER USERS ARE CREATING!



1516
∙
share

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. Text-to-image 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.



API Docs

Recently generated images:




AI IMAGE GENERATOR - TEXT TO IMAGE API DOCUMENTATION

PRICING: $5 PER 100 API CALLS, OR $5 PER 500 FOR DEEPAI PRO SUBSCRIBERS

API OPTIONS


GRID_SIZE
PASS A STRING, EITHER "1" OR "2"
“2” IS THE DEFAULT, WHICH RETURNS A 2X2 GRID WITH 4 IMAGES.
PASS “1” TO ONLY RECEIVE 1 IMAGE.

WIDTH, HEIGHT
PASS A STRING, EG "256" OR "768" (DEFAULT 512)
USE VALUES BETWEEN 128 AND 1536.
NOTE: VALUES ABOVE APPROXIMATELY 700 OR BELOW 256 MAY PRODUCE STRANGE OUTPUTS.

IMAGE_GENERATOR_VERSION
PASS A STRING, EITHER "STANDARD" OR "HD" (DEFAULT STANDARD)

NEGATIVE_PROMPT
PASS A STRING TO INDICATE WHAT YOU WANT TO BE REMOVED FROM THE IMAGE
CAN BE USED TO ENHANCE IMAGE QUALITY AND DETAILS.
EXAMPLE NEGATIVE PROMPTS: BAD ANATOMY,BAD PROPORTIONS, BLURRY, CLONED FACE,
CROPPED, DEFORMED, DEHYDRATED, DISFIGURED, DUPLICATE, ERROR, EXTRA ARMS, EXTRA
FINGERS, EXTRA LEGS, EXTRA LIMBS, FUSED FINGERS, GROSS PROPORTIONS, JPEG
ARTIFACTS, LONG NECK, LOW QUALITY, LOWRES, MALFORMED LIMBS, MISSING ARMS,
MISSING LEGS, MORBID, MUTATED HANDS, MUTATION, MUTILATED, OUT OF FRAME, POORLY
DRAWN FACE, POORLY DRAWN HANDS, SIGNATURE, TEXT, TOO MANY FINGERS, UGLY,
USERNAME, WATERMARK, WORST QUALITY.


FREQUENTLY ASKED QUESTIONS

IS COMMERCIAL USE ALLOWED?
YES, ALL COMMERCIAL USE IS ALLOWED FOR THE GENERATED IMAGES.

YOU CAN USE THESE IMAGES IN GENERAL FOR ANY LEGAL PURPOSE YOU WISH.

PLEASE SEE OUR FULL TERMS OF SERVICE HERE: TERMS OF SERVICE

CAN I USE THE GENERATED IMAGES FOR NFT?
YES.

WHO OWNS THE OUTPUT?
THE IMAGES ARE CONSIDERED PUBLIC DOMAIN, THAT IS, THEY HAVE NO OWNER.

COPYRIGHT ON OUTPUT?
THE IMAGES GENERATED BY THE AI HAVE NO COPYRIGHT.

CAN I GET HIGHER RESOLUTION OR HIGHER QUALITY IMAGES?
AT THIS TIME WE DON'T OFFER HIGHER QUALITY OR HIGHER RESOLUTION. WHAT YOU SEE IS
WHAT WE HAVE AVAILABLE, WHICH WILL IMPROVE OVER TIME.

IS THE QUALITY OF THE IMAGES GOOD ENOUGH FOR PRINTING?
IN GENERAL THE QUALITY IS GOOD ENOUGH FOR PRINTING SMALLER IMAGES. LARGER PRINTS
MIGHT BECOME VERY BLURRY.




AI IMAGE GENERATOR - TEXT TO 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/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 





AI IMAGE GENERATOR - TEXT TO IMAGE 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);
})()





AI IMAGE GENERATOR - TEXT TO IMAGE 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())





AI IMAGE GENERATOR - TEXT TO IMAGE 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





AI IMAGE GENERATOR - TEXT TO IMAGE 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));




×



LOGIN

Please sign up or login with your details

Login
Sign up
Continue with Google






Or login with email Login Forgot password? Click here to reset Go back

Become a DeepAI PRO

$4.99/mo
500 AI generator calls per month + $5 per 500 more (includes images)
1750 AI Chat messages per month + $5 per 1750 more
60 Genius Mode messages per month + $5 per 60 more
HD image generator access
Private image generation
Complete styles library
API access
Ad-free experience
*
This is a recurring payment that will happen monthly
*
If you exceed number of images or messages listed, they will be charged at a
rate of $5
Subscribe

Sign up
No thanks, I'll do a one time payment

Pay as you go

Starting at $5 for
100 AI Generator Calls (includes images)
350 AI Chat messages
Does not include Genius Mode
HD image generator access
Private image generation
Complete styles library
API access
Ad-free experience
Sign up
$5 USD $10 USD $20 USD $50 USD $100 USD $200 USD $500 USD $1000 USD Add Credits

Nevermind, I want to become PRO
×

Out of credits

Your DeepAI PRO account is out of credits - your current balance is $-0.50
Please refill your account to continue using DeepAI PRO.
$5 USD $10 USD $20 USD $50 USD $100 USD $200 USD $500 USD $1000 USD Add Credits

×

SHARE





×

DeepAI

Contact Press Legal