[GH-ISSUE #3682] [Issue]: Add Venice.ai image generation support #1989

Closed
opened 2026-10-21 05:44:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3682

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add Venice.ai as an image generation source, including image model discovery and base64 image response handling. Its OpenAI-compatible API requires non-standard endpoints that the current provider does not support.

Expected behavior

Marinara should discover Venice.ai image models using GET /models?type=image, generate images using POST /image/generate, authenticate with a bearer token, and decode the returned base64 image data.

Actual behavior

The current provider cannot discover Venice.ai image models because requesting /models without the type=image query parameter returns only text models, preventing Venice.ai image generation from being used.

Steps to reproduce

  1. Configure the current OpenAI-compatible provider with the base URL https://api.venice.ai/api/v1 and a Venice.ai API key.
  2. Attempt to list available models through the provider.
  3. Observe that the request does not include ?type=image and returns only text models.
  4. Attempt to use a Venice.ai image model such as chroma and observe that image generation is unavailable through the current integration.

Environment

  • Marinara Engine version: 2.3.0
  • Install type: source
  • OS + version: Linux (Ubuntu 24.04)
  • Browser or app shell: Not provided

Logs, screenshots, or video

No attachments provided. API evidence: GET https://api.venice.ai/api/v1/models?type=image returns image models such as chroma, flux-2-pro, venice-sd35, and gpt-image-2. POST https://api.venice.ai/api/v1/image/generate accepts model, prompt, width, and height, and returns JSON containing an images array of base64-encoded image data.

Additional context

Chat mode: Roleplay. Authentication uses Authorization: Bearer . The requester notes that Venice.ai Chroma costs $0.01 per image and has strong NSFW support. Documentation: https://docs.venice.ai/api-reference/endpoint/image/generate

Discord thread: Feature Request: Venice.ai Image Generation
Discord thread link: https://discord.com/channels/1417099416812392641/1527259833554964582
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-16T10:25:19.435Z] flowzirkus: [Open] Feature Request: Venice.ai Image Generation

- OS: Linux (Ubuntu 24.04)
- Installation: Git clone
- Version: 2.3.0
- Chat mode: Roleplay

Venice.ai Chroma is $0.01/image with strong NSFW support. The API is OpenAI-compatible but fails with the current provider because model listing is non-standard.

## API (base: https://api.venice.ai/api/v1)

**List image models** — needs `?type=image`, otherwise returns text only:

` ` `bash
curl -s "https://api.venice.ai/api/v1/models?type=image" \
  -H "Authorization: Bearer <key>" \
  | jq -r '.data[] | "\(.id)"'
` ` `

Output: `chroma`, `flux-2-pro`, `venice-sd35`, `gpt-image-2`, ...

**Generate image** — POST, returns `{ images: ["<base64>", ...] }`:

` ` `bash
curl -s -X POST "https://api.venice.ai/api/v1/image/generate" \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{"model":"chroma","prompt":"A castle in an enchanted forest, fantasy style","width":1024,"height":1024}' \
  | jq -r '.images[0]' | base64 -d > output.png
` ` `

**Response:**
` ` `json
{ "id": "...", "images": ["<base64>"], "timing": { "inferenceDuration": 123 } }
` ` `

## What's needed

1. Venice image source with `GET /models?type=image` for model discovery
2. `POST /image/generate` for generation
3. Auth: `Authorization: Bearer <key>` (same as OpenAI)

Docs: https://docs.venice.ai/api-reference/endpoint/image/generate
Image Generate | Venice API Docs
Documentation covering Venice's image generation API.
[Discord message: https://discord.com/channels/1417099416812392641/1527259833554964582/1527259833554964582]

[2026-07-16T10:34:21.487Z] Marinara: Sure.
[Discord message: https://discord.com/channels/1417099416812392641/1527259833554964582/1527262107085570079]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3682 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add Venice.ai as an image generation source, including image model discovery and base64 image response handling. Its OpenAI-compatible API requires non-standard endpoints that the current provider does not support. ## Expected behavior Marinara should discover Venice.ai image models using GET /models?type=image, generate images using POST /image/generate, authenticate with a bearer token, and decode the returned base64 image data. ## Actual behavior The current provider cannot discover Venice.ai image models because requesting /models without the type=image query parameter returns only text models, preventing Venice.ai image generation from being used. ## Steps to reproduce 1. Configure the current OpenAI-compatible provider with the base URL https://api.venice.ai/api/v1 and a Venice.ai API key. 2. Attempt to list available models through the provider. 3. Observe that the request does not include ?type=image and returns only text models. 4. Attempt to use a Venice.ai image model such as chroma and observe that image generation is unavailable through the current integration. ## Environment - Marinara Engine version: 2.3.0 - Install type: source - OS + version: Linux (Ubuntu 24.04) - Browser or app shell: Not provided ## Logs, screenshots, or video No attachments provided. API evidence: GET https://api.venice.ai/api/v1/models?type=image returns image models such as chroma, flux-2-pro, venice-sd35, and gpt-image-2. POST https://api.venice.ai/api/v1/image/generate accepts model, prompt, width, and height, and returns JSON containing an images array of base64-encoded image data. ## Additional context Chat mode: Roleplay. Authentication uses Authorization: Bearer <key>. The requester notes that Venice.ai Chroma costs $0.01 per image and has strong NSFW support. Documentation: https://docs.venice.ai/api-reference/endpoint/image/generate Discord thread: Feature Request: Venice.ai Image Generation Discord thread link: https://discord.com/channels/1417099416812392641/1527259833554964582 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-16T10:25:19.435Z] flowzirkus: [Open] Feature Request: Venice.ai Image Generation - OS: Linux (Ubuntu 24.04) - Installation: Git clone - Version: 2.3.0 - Chat mode: Roleplay Venice.ai Chroma is $0.01/image with strong NSFW support. The API is OpenAI-compatible but fails with the current provider because model listing is non-standard. ## API (base: https://api.venice.ai/api/v1) **List image models** — needs `?type=image`, otherwise returns text only: ` ` `bash curl -s "https://api.venice.ai/api/v1/models?type=image" \ -H "Authorization: Bearer <key>" \ | jq -r '.data[] | "\(.id)"' ` ` ` Output: `chroma`, `flux-2-pro`, `venice-sd35`, `gpt-image-2`, ... **Generate image** — POST, returns `{ images: ["<base64>", ...] }`: ` ` `bash curl -s -X POST "https://api.venice.ai/api/v1/image/generate" \ -H "Authorization: Bearer <key>" \ -H "Content-Type: application/json" \ -d '{"model":"chroma","prompt":"A castle in an enchanted forest, fantasy style","width":1024,"height":1024}' \ | jq -r '.images[0]' | base64 -d > output.png ` ` ` **Response:** ` ` `json { "id": "...", "images": ["<base64>"], "timing": { "inferenceDuration": 123 } } ` ` ` ## What's needed 1. Venice image source with `GET /models?type=image` for model discovery 2. `POST /image/generate` for generation 3. Auth: `Authorization: Bearer <key>` (same as OpenAI) Docs: https://docs.venice.ai/api-reference/endpoint/image/generate Image Generate | Venice API Docs Documentation covering Venice's image generation API. [Discord message: https://discord.com/channels/1417099416812392641/1527259833554964582/1527259833554964582] [2026-07-16T10:34:21.487Z] Marinara: Sure. [Discord message: https://discord.com/channels/1417099416812392641/1527259833554964582/1527262107085570079] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:25 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1989
No description provided.