Skip to main content
GET
/
api
/
v1
/
client
/
prompts
/
samples
cURL
curl --request GET \
  --url https://api.deapi.ai/api/v1/client/prompts/samples \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "type": "text2image",
    "prompt": "A futuristic cyberpunk cityscape at night, neon lights reflecting off wet streets, towering holographic advertisements, flying cars weaving between glass skyscrapers, cinematic composition, moody, atmospheric, ultra-detailed digital art style."
  }
}
Supported types: text2image and text2speech. Optionally provide a topic parameter to guide the generation toward a specific theme.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
enum<string>
required

Type of sample prompt to generate

Available options:
text2image,
text2speech
Example:

"text2image"

topic
string | null

Optional topic to base the prompt on. Uses default topics if not provided.

Maximum string length: 500
Example:

"cyberpunk cityscape at night"

lang_code
string | null

Optional language code for text-to-speech prompts

Maximum string length: 4
Example:

"en"

Response

Sample prompt generated successfully

success
boolean
Example:

true

data
object