Arli AI 图像生成运行在 SDNext 和 vLLM-Omni 上。SDNext 模型提供 Stable Diffusion API 的广泛子集(采样器、调度器、细节器、IP-Adapter、ControlNet 和放大)。vLLM-Omni 模型提供固定的采样器/调度器流水线,支持 size、steps、guidance、flow shift 以及模型特定的额外参数等 OpenAI Images 参数。
https://github.com/vladmandic/sdnexthttps://github.com/vllm-project/vllm-omni所有图像生成 API 端点都需要通过 Authorization 标头进行 Bearer Token 或 Basic 身份验证。请将示例中的 {ARLIAI_API_KEY} 替换为您的实际 API 密钥。对于 Basic 认证,请将您的 API 密钥用作密码并进行 Base64 编码(例如 Authorization: Basic Base64Encode(ARLIAI_API_KEY))。
API 请求会根据模型要求和可用性路由到适当的后端服务器。请确保您的账户已通过相关端点(`/sd-models`、`/upscalers`)获得使用特定图像生成模型或放大器模型的权限。
图像生成和放大请求受账户套餐对应的速率限制和并发限制约束。超出限制可能导致账户被临时限制。请查看账户仪表板了解您的限制详情。
API 密钥参数覆盖(在账户设置中设置)将与请求正文中发送的参数合并,并对兼容参数优先应用。
成功的 POST 请求(txt2img、img2img、extra-single-image)通常返回一个 JSON 对象,其中 images 字段(放大时为 image)包含 base64 编码的图像列表,info 字段包含生成参数。成功的 GET 请求返回各自章节中描述的 JSON 数据。
Some image models on Arli AI run on vLLM-Omni instead of SD.Next. The SDNext-compatible /v1/txt2img, /v1/img2img, /sdapi/v1/txt2img, and /sdapi/v1/img2img endpoints still work for both engines, and vLLM-Omni models also expose the OpenAI Images API.
width/height become size, steps becomes num_inference_steps, cfg_scale becomes guidance_scale, batch_size becomes n, and denoising_strength becomes strength. flow_shift and the SLG extra_params keys are forwarded for vLLM-Omni text-to-image.sampler_name, most scheduler fields, detailer, IP-Adapter, and ControlNet fields are not applied; schedulers_shift is used as a fallback for flow_shift on text-to-image. ControlNet generation and preprocessing are SD.Next-only.maxSteps (default 40), maxBatchSize, maxCfgScale (default 30), and sizeMultiple. MOSS-Image requires dimensions in multiples of 16; MiniMax-H3-Image uses a 32-pixel grid. Read the exact values from GET /v1/img-models.supportsImg2Img, and sending a mask requires supportsInpaint. OpenAI edits require supportsImg2Img. MOSS-Image-SFT is text-to-image only.flow_shift and extra_params are text-to-image only and are not applied to edits.POST /v1/images/generations requires model and a healthy vLLM-Omni server. It accepts prompt, negative_prompt, size (or width/height), n, seed, num_inference_steps, guidance_scale, true_cfg_scale, flow_shift, extra_params (SLG keys only), output_format, output_compression, generator_device, layers, resolution, strength, sigmas, num_frames, bot_task, system_prompt, use_system_prompt, and return_stage_metrics. response_format is accepted but images are always returned in data[].b64_json. n must be 1-10 and cannot exceed the model maxBatchSize.POST /v1/images/edits requires model and supportsImg2Img. Send multipart image/image[] plus optional mask_image or reference_image, or JSON base64 image, images, init_images, mask, or mask_image. Edits accept prompt, negative_prompt, size (defaults to the input image or auto), n, num_inference_steps, guidance_scale, true_cfg_scale, strength, seed, generator_device, layers, resolution, output_format, output_compression, bot_task, system_prompt, and return_stage_metrics. flow_shift and extra_params are not applied to edits.GET /v1/images/models lists only models with a healthy vLLM-Omni server in OpenAI model-list format. GET /v1/img-models returns the full catalog with engine, per-model limits, capability flags, and curated defaults. vLLM-Omni models can also be used through /sdapi/v1/txt2img, /v1/txt2img, /sdapi/v1/img2img, and /v1/img2img when their capability flags allow it.文生图页面允许您根据文本描述(“提示词”)创建图像。您描述想要看到的内容,AI 将为您生成。



此工具会根据您的文本提示词转换现有图像。



在增加细节的同时提高图像分辨率。
