Image Generation API Documentation

Generate Images using REST API
Features and Capabilities
asticaArt Generation

The asticaDesign image generation API provides the ability to generate realistic photographs and creative images within your application or project. The image generation API provides a simple mechanism for generating images according to the provided prompt describing the image; including the style, colors, and subject matter.

Images are generated in real-time and the response includes a URL pointing to the created image. The REST API also supports a low priority mode for generating larger batches of images (non-realtime).

Try the online demonstration:

Generate Images Online
Image Generation Generation Code Samples
Sending a Image Generation Request
Endpoint
https://design.astica.ai/generate_image
Basic Use Example (CURL)

curl --location --request POST 'https://design.astica.ai/generate_image' \
--header 'Content-Type: application/json' \
--insecure \
--data '{
    "tkn": "YOUR API KEY", 
    "modelVersion": "2.0_full",  
    "prompt": "close-up photography of older gentleman standing in the rain at night, in a street lit by lamps",
    "prompt_negative": "",
    "generate_quality": "high",
    "generate_lossless": 0,
    "seed": 0,
    "low_priority": "1"
}'

Note that you need to replace "YOUR API KEY" with your actual API key.

Input List
Image Generation API Inputs

Each call to the asticaDesign Image Generation API should include the parameters that you wish to detect. If you do not supply any parameters, then it will default to all and you will be billed for each transaction for every call.

List of astica Hearing Inputs
token
string
your astica API Key
string
modelVersion
string
Model versions can be one of the following:
  • 1.0_full
  • 2.0_full
string
prompt
string
string input. Maximum 350 characters
string
prompt_negative
string
optional string input. Maximum 350 characters
string
seed
integer
Optional seed integer can be used to direct the generation process for consistent output.
integer
generate_quality
string
Significantly impacts comprehension of the image.
  • high
  • standard ‐ default
  • fast
  • faster
  • All Images are produced in 1024x1024 resolution.
  • Higher qualities have longer generation times.
string
generate_lossless
integer
Generate an uncompressed loselss quality image (PNG)
  • 0 = disabled (JPG) ‐ default
  • 1 = enabled (PNG)
integer
moderate
integer
Moderate ON = 1
Moderate OFF = 0
Returns moderated (safe) content and is turned ON by default.
Requires permissions to disable.
Request to disable moderation
integer
low_priority
integer
Lower costs by receiving a URL to query for results.
integer
API Responses
Image Generation API Response Example
{
    "output": "https://design.astica.ai/path_to_image.png",
    "generate_quality": "standard",
    "generate_lossless": 1,
    "seed": 4323,
    "astica": {
        "request": "design",
        "requestType": "generate_image",
        "modelVersion": "2.0_full",
        "api_qty": 1.2691
    },
    "status": "success"
}

astica ai Discover More AI

Experiment with different kinds of artificial intelligence. See, hear, and speak with astica.

Return to Dashboard
You can return to this page at any time.
Success Just Now
Copied to clipboard
Success Just Now
Submission has been received.
Success Just Now
Account preferences have been updated.