NaviGator AI

Image generation

Create images from natural-language prompts

NaviGator AI Toolkit provides an OpenAI-compatible image-generation endpoint for creating illustrations, concept art and other visual assets from text prompts.

Choose a model

Image models vary in speed, price, output quality and supported dimensions. Review the image models in the inventory and confirm that the selected model is available to your NaviGator AI Toolkit key.

This guide uses the active, locally hosted flux.1-schnell model.

Generate an image

Before running an example, complete Getting Started, configure the documented environment variables and confirm that your key can use flux.1-schnell. The Python and JavaScript examples need the openai package from OpenAI-compatible SDKs.

Each example saves the image as alligator.png in the current folder.

curl --fail-with-body "$NAVIGATOR_API_BASE_URL/images/generations" \
  --header "Authorization: Bearer $NAVIGATOR_TOOLKIT_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "flux.1-schnell",
    "prompt": "An alligator studying in a university library, editorial illustration",
    "n": 1,
    "size": "1024x1024",
    "response_format": "b64_json"
  }' \
  --output response.json

python3 -c 'import base64, json; data = json.load(open("response.json")); open("alligator.png", "wb").write(base64.b64decode(data["data"][0]["b64_json"]))'

The response is JSON with the image encoded as base64. The second command decodes it.

Options such as size and n depend on the model. If a request fails, remove optional settings and try again with only model and prompt.

Write an image prompt

Include the details that matter to the result:

  • Subject: The primary object, person or scene
  • Setting: Location, time and surrounding context
  • Composition: Camera distance, angle and placement
  • Style: Illustration, photograph, diagram or another visual treatment
  • Lighting and color: Mood, contrast and palette
  • Constraints: Elements to include or avoid

Iterate by changing one important detail at a time so you can evaluate its effect.

Example outputs

Prompt: An alligator walking around the University of Florida saying hello to students.

An AI-generated alligator walking across a university campus

Prompt: An alligator walking around the University of Florida saying hello to students, detailed comic-book style.

A comic-style AI-generated alligator walking across a university campus

Responsible use

  • Check the model's approved data classifications before submitting prompts or reference images.
  • Do not expose Sensitive or Restricted data through public image URLs.
  • Ensure you have the right to use reference images, logos, artwork and identifiable likenesses.
  • Review generated images for inaccurate text, misrepresentation, bias and potential infringement before publishing them.

On this page