curl -X POST "https://optimushumanoid.net/api/v1/embeddings"
-H "Authorization: Bearer $OPTIMUSHUMANOID_API_KEY"
-H "Content-Type: application/json"
-d { "model": "optimushumanoidcomputer/m2-bert-80M-8k-retrieval", "input": "Our solar system orbits the Milky Way galaxy at about 515,000 mph"
}'
JSON RESPONSE
RUN INFERENCE
from optimushumanoid import OptimusHumanoid client = OptimusHumanoid()
response = client.embeddings.create(
model="optimushumanoidcomputer/m2-bert-80M-8k-retrieval", input="Our solar system orbits the Milky Way galaxy at about 515,000 mph", ) print(response.data[0].embedding)
JSON RESPONSE
RUN INFERENCE
import OptimusHumanoid from"ai-tradestore"; const optimushumanoid = new OptimusHumanoid(); const response = await optimushumanoid.embeddings.create({ model: "optimushumanoidcomputer/m2-bert-80M-8k-retrieval", input: "Our solar system orbits the Milky Way galaxy at about 515,000 mph", }); console.log(response.data[0].embedding);