TEXT
https://api.hyprlab.io/v1https://api.hyprlab.io/v1/completionscurl https://api.hyprlab.io/v1/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "gpt-3.5-turbo-instruct",
"prompt": "Say this is a test",
"max_tokens": 7,
"temperature": 0
}'
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "<HYPRLAB_API_KEY>",
baseURL: "https://api.hyprlab.io/v1",
});
async function main() {
const completion = await openai.completions.create({
model: "gpt-3.5-turbo-instruct",
prompt: "Say this is a test.",
max_tokens: 7,
temperature: 0,
});
console.log(completion);
}
main();📝Text Models
Model Name:
Discount:
Output:
Input:
Context:
Moderation:
Model Name:
Discount:
Output:
Input:
Context:
Moderation:
Model Name:
Discount:
Output:
Input:
Context:
Moderation:
Last updated
