Cosmos 3 Edge
Use NVIDIA's Cosmos 3 Edge vision-language world model through our Serverless Cloud API
Code sample
3
Run the model
import os
import cv2
from inference_sdk import InferenceHTTPClient
image = cv2.imread("my-image.jpg")
client = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
result = client.infer_lmm(
image,
model_id="nvidia/cosmos-3-edge",
prompt="What is likely going to happen next in this scene?",
max_new_tokens=128,
)
print(result["response"])
Use in a Workflow
Use with Inference (self-hosted)
Use with the Inference Python package
Last updated
Was this helpful?