top of page

Stellar Mediums

In the art world, there are various mediums to create works of art. From traditional mediums

like oil and watercolor to digital mediums like 3D graphics and animation, artists strive to be diverse and ahead of the times. This diversity in mediums allows for endless possibilities in expression and creativity. As technology advances, artists continue to experiment and push the boundaries of what is possible in art. Regardless of the medium, art remains a powerful tool for communicating emotions, ideas, and perspectives.





API Docs

QUICK START API REQUEST

curl \

-F 'text=YOUR_TEXT_URL' \

-H 'api-key:quickstart-QUdJIGlzIGNvbWluZy4uLi4K' \

https://api.deepai.org/api/text-generator


Generate Text

base on an input sentence

Generate coherent text from seed text



Text Prediction

for partial sentences

Complete partial sentences with text generation



Complete Paragraphs

of text generated

Generate complete paragraphs of text


Text Generation API Documentation

Pricing: $5 per 100 API calls, or $5 per 500 for DeepAI Pro subscribers

Text Generation cURL Examples

# Example posting a text URL:


curl \

-F 'text=YOUR_TEXT_URL' \

-H 'api-key:quickstart-QUdJIGlzIGNvbWluZy4uLi4K' \

https://api.deepai.org/api/text-generator



# Example posting a local text file:


curl \

-F 'text=@/path/to/your/file.txt' \

-H 'api-key:quickstart-QUdJIGlzIGNvbWluZy4uLi4K' \

https://api.deepai.org/api/text-generator



# Example directly sending a text string:


curl \

-F 'text=YOUR_TEXT_HERE' \

-H 'api-key:quickstart-QUdJIGlzIGNvbWluZy4uLi4K' \

https://api.deepai.org/api/text-generator

Text Generation Javascript Examples

// Get the 'deepai' package here (Compatible with browser & nodejs):

// 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('quickstart-QUdJIGlzIGNvbWluZy4uLi4K');


(async function() {

var resp = await deepai.callStandardApi("text-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('quickstart-QUdJIGlzIGNvbWluZy4uLi4K');


(async function() {

var resp = await deepai.callStandardApi("text-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('quickstart-QUdJIGlzIGNvbWluZy4uLi4K');


(async function() {

var resp = await deepai.callStandardApi("text-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('quickstart-QUdJIGlzIGNvbWluZy4uLi4K');


(async function() {

var resp = await deepai.callStandardApi("text-generator", {

text: "YOUR_TEXT_HERE",

});

console.log(resp);

})()

Text Generation Python Examples

# Example posting a text URL:


import requests

r = requests.post(

"https://api.deepai.org/api/text-generator",

data={

'text': 'YOUR_TEXT_URL',

},

headers={'api-key': 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'}

)

print(r.json())



# Example posting a local text file:


import requests

r = requests.post(

"https://api.deepai.org/api/text-generator",

files={

'text': open('/path/to/your/file.txt', 'rb'),

},

headers={'api-key': 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'}

)

print(r.json())



# Example directly sending a text string:


import requests

r = requests.post(

"https://api.deepai.org/api/text-generator",

data={

'text': 'YOUR_TEXT_HERE',

},

headers={'api-key': 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'}

)

print(r.json())

Text Generation Ruby Examples

# Example posting a text URL:


require 'rest_client'

r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/text-generator', timeout: 600,

headers: {'api-key' => 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'},

payload:

2 views0 comments

Recent Posts

See All

Comments


bottom of page