Skip to content

Commit b87d791

Browse files
feat: add flux-2-max and gpt-image-1.5 models (withceleste#98)
* feat: add flux-2-max and gpt-image-1.5 models - Add flux-2-max model to BFL image generation models - Add gpt-image-1.5 model to OpenAI image generation models * chore: bump versions to 0.3.5 Bump celeste-ai and celeste-image-generation versions to 0.3.5
1 parent 44156a6 commit b87d791

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

packages/capabilities/image-generation/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "celeste-image-generation"
3-
version = "0.3.3"
3+
version = "0.3.5"
44
description = "Image generation package for Celeste AI. Unified interface for all providers"
55
authors = [{name = "Kamilbenkirane", email = "kamil@withceleste.ai"}]
66
readme = "README.md"

packages/capabilities/image-generation/src/celeste_image_generation/providers/bfl/models.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@
66
from celeste_image_generation.parameters import ImageGenerationParameter
77

88
MODELS: list[Model] = [
9+
Model(
10+
id="flux-2-max",
11+
provider=Provider.BFL,
12+
display_name="FLUX.2 [max]",
13+
parameter_constraints={
14+
ImageGenerationParameter.ASPECT_RATIO: Dimensions(
15+
min_pixels=64 * 64, # 4,096
16+
max_pixels=2048 * 2048, # 4,194,304 (4MP)
17+
min_aspect_ratio=9 / 21, # ~0.429
18+
max_aspect_ratio=21 / 9, # ~2.333
19+
presets={
20+
"Square 1K": "1024x1024",
21+
"Square 2K": "2048x2048",
22+
"HD 16:9": "1920x1080",
23+
"Portrait HD": "1080x1920",
24+
"4:3": "1280x960",
25+
"3:4": "960x1280",
26+
"Ultra-wide 21:9": "1920x832",
27+
"Portrait 9:21": "832x1920",
28+
},
29+
),
30+
# Note: flux-2-max always upsamples prompts (no prompt_upsampling parameter)
31+
# Includes grounding search for real-time information integration
32+
ImageGenerationParameter.SEED: Int(),
33+
ImageGenerationParameter.SAFETY_TOLERANCE: Range(min=0, max=5),
34+
ImageGenerationParameter.OUTPUT_FORMAT: Choice(options=["jpeg", "png"]),
35+
},
36+
),
937
Model(
1038
id="flux-2-pro",
1139
provider=Provider.BFL,

packages/capabilities/image-generation/src/celeste_image_generation/providers/openai/models.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,18 @@
5656
),
5757
},
5858
),
59+
Model(
60+
id="gpt-image-1.5",
61+
provider=Provider.OPENAI,
62+
display_name="GPT Image 1.5",
63+
streaming=False,
64+
parameter_constraints={
65+
ImageGenerationParameter.ASPECT_RATIO: Choice(
66+
options=["1024x1024", "1536x1024", "1024x1536", "auto"]
67+
),
68+
ImageGenerationParameter.QUALITY: Choice(
69+
options=["low", "medium", "high", "auto"]
70+
),
71+
},
72+
),
5973
]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "celeste-ai"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
description = "Open source, type-safe primitives for multi-modal AI. All capabilities, all providers, one interface"
55
authors = [{name = "Kamilbenkirane", email = "kamil@withceleste.ai"}]
66
readme = "README.md"

0 commit comments

Comments
 (0)