1. Image
Nebula-API操作文档
🇺🇸English
  • 🇨🇳中文
  • 🇺🇸English
  • Chat
    • General Text Dialogue Interface Document
    • Tongyi Qianwen General Dialogue Interface Document
    • DeepSeek General Dialogue Document
    • GPT Chat General Dialogue Document
    • Grok Model (xAI) General Dialogue Interface Document
  • Image
    • General Image Generation Interface Document
    • Nano Banana Image Generation Interface Document
    • Tongyi Qianwen Text to Image Model Interface Document
    • Tongyi Qianwen Image Editing Model Interface Document
  • Video
    • Sora-2 interface document
    • Alibaba Wanxiang Wan2.5 Tu Sheng Video Interface Document
    • Google Veo Video Model Interface Document
    • General Video Generation Interface Document
  • AI App
    • Cherry Studio Integration Guide
    • LangChain Development Framework Integration Guide
    • Cursor Code Editor Integration Guide
    • Claude Code and other client integration guidelines
    • Cline (VS Code) AI Programming Assistant Integration Guide
    • Immersive Translation Integration Guide
  • Real time conversation
    • Realtime real-time conversation document
  1. Image

General Image Generation Interface Document

General Image Generation API Usage Example Documentation#

1. Basic Interface Information#

Base URL: https://llm.ai-nebula.com/v1/images/generations
Authentication Method: Bearer Token
Authentication Token: Bearer sk-xxxxxxxxxx
Interface Function: Supports text-to-image, image-to-image; Google Nano banana supports contextual text-and-image generation

2. Simple Text-to-Image Function#

Generate a picture of "a cute orange kitten sitting in a garden":

3. Image-to-Image Function#

Generate a landscape painting based on a base image: (image: url or Base64 input)
Nano banana also supports contextual conversation

Response Handling Description#

1.
A successful response (status code 200) returns JSON containing image data.
2.
When response_format is set to b64_json, the image data is in the data[].b64_json field.
3.
When response_format is set to url, the image address is in the data[].url field.

Saving Base64 Image Data (Command Line Example)#

修改于 2025-12-04 07:48:20
上一页
Grok Model (xAI) General Dialogue Interface Document
下一页
Nano Banana Image Generation Interface Document
Built with