Use this file to discover all available pages before exploring further.
Generate and edit images from text prompts, sketches, or existing images with creative control. Perfect for creative content generation, marketing and advertising, product visualization, and artistic expression.
Generate images from text descriptions with creative control over style, composition, and details.Generate an image of a cat flying through the sky and clouds, with the background of a green city with river
from vlmrun.client import VLMRun# Initialize the VLMRun clientclient = VLMRun(api_key="<VLMRUN_API_KEY>")# Generate the imageresponse = client.agent.completions.create( model="vlmrun-orion-1:auto", messages=[ { "role": "user", "content": "Generate an image of a modern building as a cyberpunk-style futuristic structure with neon lights and holographic elements" } ])print(response.choices[0].message.content)# >>> {"url": "https://.../image.jpg"}
Transform existing images by applying new styles, enhancing details, or changing specific elements while preserving the original structure.
Reference Dog Image
Dog flying through space
from vlmrun.client import VLMRun# Initialize the VLMRun clientclient = VLMRun(api_key="<VLMRUN_API_KEY>")# Generate the imageresponse = client.agent.completions.create( model="vlmrun-orion-1:auto", messages=[ { "role": "user", "content": [ {"type": "text", "text": "Transform the image of my dog on the right into a flying dog with superman cape, with majestic background"}, {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.object-detection/dog-cat.jpg", "detail": "auto"}} ] } ])print(response.choices[0].message.content)# >>> {"url": "https://.../image.jpg"}
Fill in missing areas, remove unwanted objects, or add new elements to existing images seamlessly.
Reference Dog Image
Reference Car Image
from vlmrun.client import VLMRun# Initialize the VLMRun clientclient = VLMRun(api_key="<VLMRUN_API_KEY>")# Generate the imageresponse = client.agent.completions.create( model="vlmrun-orion-1:auto", messages=[ { "role": "user", "content": [ {"type": "text", "text": "Given two images: the first with a dog in front holding a yellow ball, inpaint her driving the car shown in the second image."}, {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.object-detection/dogs.jpg", "detail": "auto"}}, {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.caption/car.jpg", "detail": "auto"}} ] } ])print(response.choices[0].message.content)# >>> {"url": "https://.../image.jpg"}
Apply artistic styles from reference images to transform the visual appearance while preserving content. In the example below, we apply the Van Gogh’s “Starry Night” painting style to a photo of a city skyline at night.
Reference Van Gogh Image
Reference City Image
from vlmrun.client import VLMRun# Initialize the VLMRun clientclient = VLMRun(api_key="<VLMRUN_API_KEY>")# Generate the imageresponse = client.agent.completions.create( model="vlmrun-orion-1:auto", messages=[ { "role": "user", "content": [ {"type": "text", "text": "Given two images: the first with a Van Gogh painting, and the second with a city skyline at night, apply the Van Gogh painting style to the city skyline."}, {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.generation/starry-night.jpg", "detail": "auto"}}, {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.generation/sf-golden-gate.jpg", "detail": "auto"}} ] } ])print(response.choices[0].message.content)# >>> {"url": "https://.../image.jpg"}