-
Notifications
You must be signed in to change notification settings - Fork 93
Feature: Gen image with gemini-3-pro-image-preview #10
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Code
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8317/v1", api_key="")
response = client.chat.completions.create(
model="gemini-3-pro-image-preview",
messages=[{"role": "user", "content": "Gen an image of a cat riding a bicycle."}],
)
print(response)Output
ChatCompletion(id='LcNMad7lLo351e8P0aTBoAc', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content=None, refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None), native_finish_reason='STOP')], created=1766638382, model='gemini-3-pro-image-preview', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=1212, prompt_tokens=11, total_tokens=1396, completion_tokens_details=CompletionTokensDetails(accepted_prediction_tokens=None, audio_tokens=None, reasoning_tokens=173, rejected_prediction_tokens=None), prompt_tokens_details=None))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request