More APIs
DEVUP Native API
Advanced API with access to all model types including image generation, speech, object detection, and more.
The DEVUP Native API gives you access to every model we provide, including model types not covered by the OpenAI-compatible API: image generation, speech recognition, object detection, token classification, fill mask, image classification, zero-shot image classification, and text classification.
For LLMs and embeddings, the OpenAI-compatible API is simpler and recommended. Use the native API when you need model types beyond LLMs/embeddings, or when you need features like webhooks or log probabilities.
bash
https://api.devupai.com/v1/inference/{model_name}JavaScript client
bash
npm install devupaiText Generation (LLMs)
import { TextGeneration } from "devupai";
const client = new TextGeneration(
"https://api.devupai.com/v1/inference/deepseek-ai/DeepSeek-V3",
"$DEVUP_API_KEY"
);
const res = await client.generate({
input: "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHello!<|eot_id|>",
stop: ["<|eot_id|>"]
});
console.log(res.results[0].generated_text);
console.log(res.inference_status.tokens_input, res.inference_status.tokens_generated);Embeddings
import { Embeddings } from "devupai";
const client = new Embeddings("Qwen/Qwen3-Embedding-8B", "$DEVUP_API_KEY");
const output = await client.generate({
inputs: [
"What is the capital of France?",
"What is the capital of Germany?",
],
});
console.log(output.embeddings[0]);Image Generation
import { TextToImage } from "devupai";
import { createWriteStream } from "fs";
import { Readable } from "stream";
const model = new TextToImage("stabilityai/stable-diffusion-2-1", "$DEVUP_API_KEY");
const response = await model.generate({
prompt: "a burger with a funny hat on the beach",
});
const result = await fetch(response.images[0]);
if (result.ok && result.body) {
Readable.fromWeb(result.body).pipe(createWriteStream("image.png"));
}Speech Recognition
bash
curl -X POST \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-F audio=@audio.mp3 \
'https://api.devupai.com/v1/inference/openai/whisper-large'Object Detection
bash
curl -X POST \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-F image=@image.jpg \
'https://api.devupai.com/v1/inference/hustvl/yolos-small'Token Classification
bash
curl -X POST \
-d '{"input": "My name is John Doe and I live in San Francisco."}' \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-H "Content-Type: application/json" \
'https://api.devupai.com/v1/inference/Davlan/bert-base-multilingual-cased-ner'Fill Mask
bash
curl -X POST \
-d '{"input": "I need my [MASK] right now!"}' \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-H "Content-Type: application/json" \
'https://api.devupai.com/v1/inference/bert-base-cased'Image Classification
bash
curl -X POST \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-F image=@image.jpg \
'https://api.devupai.com/v1/inference/google/vit-base-patch16-224'Zero-Shot Image Classification
bash
curl -X POST \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-F image=@image.jpg \
-F 'candidate_labels=["dog", "cat", "car", "horse", "person"]' \
'https://api.devupai.com/v1/inference/openai/clip-vit-base-patch32'Text Classification
bash
curl -X POST \
-d '{"input": "Nvidia announces new AI chips months after latest launch"}' \
-H "Authorization: Bearer $DEVUP_API_KEY" \
-H 'Content-Type: application/json' \
'https://api.devupai.com/v1/inference/ProsusAI/finbert'HTTP / other languages
The native API is plain HTTP — you can use it from any language (Go, C#, Java, PHP, Ruby, C++, etc.) without any SDK dependency.