Skip to content

Conversation

Bentlybro
Copy link
Member

Adds support for Ideogram V3 model while maintaining backward compatibility with existing models (V1,
V1_TURBO, V2, V2_TURBO). Updates default model to V3 and implements smart API routing to handle
Ideogram's new V3 endpoint requirements.

Changes Made

  • Added V3 model support: Added V_3 to IdeogramModelName enum and set as default
  • Dual API endpoint handling:
    • V3 models route to new /v1/ideogram-v3/generate endpoint with updated payload format
    • Legacy models (V1, V2, Turbo variants) continue using /generate endpoint
  • Model-specific feature filtering:
    • V1 models: Basic parameters only (no style_type or color_palette support)
    • V2/V2_TURBO: Full legacy feature support including style_type and color_palette
    • V3: New endpoint with aspect ratio mapping and updated parameter structure
  • Aspect ratio compatibility: Added mapping between internal enum values and V3's expected format
    (ASPECT_1_1 → 1x1)
  • Updated pricing: V3 model costs 18 credits (vs 16 for other models)
  • Updated default usage: Store image generation now uses V3 by default

Technical Details

Ideogram updated their API with a separate V3 endpoint that has different requirements:

  • Different URL path (/v1/ideogram-v3/generate)
  • Different aspect ratio format (e.g., 1x1 instead of ASPECT_1_1)
  • Model-specific feature support (V1 models don't support style_type, etc.)

The implementation intelligently routes requests to the appropriate endpoint based on the selected model
while maintaining a single unified interface.

I tested all the models and they are working here
image

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • Test the Ideogram model block and watch as they all work!

Introduces Ideogram V3 model option, updates default model to V3, and routes requests to the new V3 API endpoint with appropriate payload formatting. Updates block cost configuration for V3 and modifies image generation to use V3 by default.
Updated IdeogramModelBlock to only include style_type for V2, V2_TURBO, and V3 models, and color_palette for V2 and V2_TURBO models. This ensures unsupported fields are not sent for V1 models, improving compatibility.
@Bentlybro Bentlybro requested a review from a team as a code owner August 27, 2025 08:03
@Bentlybro Bentlybro requested review from ntindle and majdyz and removed request for a team August 27, 2025 08:03
@github-project-automation github-project-automation bot moved this to 🆕 Needs initial review in AutoGPT development kanban Aug 27, 2025
Copy link

netlify bot commented Aug 27, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 3b3b65a
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs-dev/deploys/68aebde3776f5600081de3e0

@github-actions github-actions bot added platform/backend AutoGPT Platform - Back end platform/blocks labels Aug 27, 2025
Copy link

netlify bot commented Aug 27, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 3b3b65a
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs/deploys/68aebde3257f850008efb364

Copy link

deepsource-io bot commented Aug 27, 2025

Here's the code health analysis summary for commits 533d2d0..3b3b65a. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Python LogoPython✅ Success
❗ 2 occurences introduced
🎯 1 occurence resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@Bentlybro Bentlybro changed the title Add support for Ideogram V3 model and endpoint feat(blocks): Add Ideogram V3 model Aug 27, 2025
@Bentlybro Bentlybro requested a review from Swiftyos August 27, 2025 08:06
@github-project-automation github-project-automation bot moved this from 🆕 Needs initial review to 👍🏼 Mergeable in AutoGPT development kanban Aug 27, 2025
@Bentlybro Bentlybro added this pull request to the merge queue Aug 27, 2025
Merged via the queue into dev with commit 3718b94 Aug 27, 2025
27 checks passed
@Bentlybro Bentlybro deleted the Adding-ideogram-V3 branch August 27, 2025 08:48
@github-project-automation github-project-automation bot moved this from 👍🏼 Mergeable to ✅ Done in AutoGPT development kanban Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants