Features

Image Generation

The Image Generation API enables you to create high-quality images from natural language prompts. Whether you're generating concept art, marketing assets, product mockups, illustrations, or UI inspiration, NovaAI transforms descriptive text into visually compelling images with a single API request.

Overview

NovaAI Image Generation uses advanced text-to-image models to produce images from descriptive prompts. Simply describe what you want to create, configure the generation parameters, and the model returns one or more generated images.

The quality of the output depends on the clarity and specificity of your prompt. Providing visual details such as style, composition, lighting, colors, and camera perspective helps the model generate more accurate results.

Note: The Image Generation API is optimized for creating original images from text prompts. It is not intended for editing existing images or performing image analysis.

Note: The Image Generation API is optimized for creating original images from text prompts. It is not intended for editing existing images or performing image analysis.

How Image Generation Works

Rendering diagram…

Each request follows the same workflow, from prompt creation to image delivery.

Generate Your First Image


import { NovaAI } from "@novaai/sdk";
 
const client = new NovaAI({
apiKey: process.env.NOVA_API_KEY,
});
 
const image = await client.images.generate({
model: "nova-image-1",
prompt: "A futuristic smart city at sunset with flying vehicles, cinematic lighting, ultra detailed.",
size: "1024x1024"
});
 
console.log(image.data);

Request Properties

model

string

required

Image generation model.

prompt

string

required

Text description of the desired image.

size

string

optional

Output image dimensions.

quality

string

optional

Image quality level.

format

string

optional

Image output format.

count

integer

optional

Number of images to generate.

Prompt Writing Tips

High-quality prompts typically include:

  • Subject

  • Environment

  • Artistic style

  • Lighting

  • Camera perspective

  • Color palette

  • Composition

  • Level of detail

Example Prompt

Image Generation Prompt

Copy Prompt

Image Generation Prompt

Copy Prompt

The more descriptive your prompt, the more predictable the generated image becomes.

Supported Image Sizes

Resolution

Aspect Ratio

Recommended Use

512 × 512

1:1

Icons and thumbnails

1024 × 1024

1:1

General-purpose image generation

1024 × 1536

2:3

Portrait illustrations

1536 × 1024

3:2

Landscape scenes

1920 × 1080

16:9

Presentations and banners

Response Example

{
"id": "img_91af7d",
"created": 1743256821,
"data": [
{
"url": "https://cdn.novaai.dev/images/image-01.png"
}
]
}

Best Practices

  • Write clear and descriptive prompts.

  • Include visual style references when appropriate.

  • Specify lighting, composition, and camera angle.

  • Choose the correct output resolution for your use case.

  • Generate multiple variations when exploring creative concepts.

Tip: Start with a simple prompt, then gradually refine it by adding more visual details instead of trying to describe everything at once.

Tip: Start with a simple prompt, then gradually refine it by adding more visual details instead of trying to describe everything at once.

Common Prompt Examples

Product Photography

Product Photography Prompt

Copy Prompt

Product Photography Prompt

Copy Prompt

Illustration

Illustration Prompt

Copy Prompt

Illustration Prompt

Copy Prompt

Concept Art

Concept Art Prompt

Copy Prompt

Concept Art Prompt

Copy Prompt

Common Errors

Empty Prompt

The request does not contain a valid prompt.

Solution

Provide a descriptive text prompt before sending the request.

Unsupported Resolution

The selected image size is not supported by the model.

Solution

Choose one of the officially supported output dimensions.

Generation Timeout

The request exceeded the maximum processing time.

Solution

Retry the request or reduce the number of requested images.

Warning: Extremely long prompts may increase processing time without significantly improving image quality. Focus on relevant visual details instead of unnecessary repetition.

Warning: Extremely long prompts may increase processing time without significantly improving image quality. Focus on relevant visual details instead of unnecessary repetition.

Frequently Asked Questions

Can I generate multiple images in a single request?

Yes. Use the count parameter to request multiple image variations.

Does image size affect generation time?

Generally, larger image resolutions require more processing time and computational resources.

Can I use generated images commercially?

Usage rights depend on your NovaAI subscription and applicable licensing terms. Refer to the licensing documentation for details.

Can I generate multiple images in a single request?

Yes. Use the count parameter to request multiple image variations.

Does image size affect generation time?

Generally, larger image resolutions require more processing time and computational resources.

Can I use generated images commercially?

Usage rights depend on your NovaAI subscription and applicable licensing terms. Refer to the licensing documentation for details.

Next Step

You've learned how to generate images from natural language prompts. Continue to Embeddings to discover how NovaAI converts text into vector representations for semantic search, recommendations, and retrieval-augmented generation (RAG).

Related Documentaion

Was this helpful?

Was this helpful?

Create a free website with Framer, the website builder loved by startups, designers and agencies.