Getting 400 Bad Request on Fine Tuned model

Hi, I’m trying to submit requests to the completions API using a fine-tuned model. However, I’m always getting a 400 Bad Request.

I’m send the model ID in the format davinci:ft-XXXX, which I got from the List Models API.

It works fine with base models. (Just to make sure payload is correct)

Could you please help me?

Thanks in advance!

Hey @castroalves is this issue still present?

hello, getting a 401 bad request with axios
i am also unable to post to the endpoint…help me out

const express = require (“express”);
const cors = require(“cors”);
const bodyParser = require(“body-parser”)
const{configuration, OpenAIApi, Configuration}= require(“openai”);

// setting up the server
const app = express()


// setting up the ChartGpt endpoint
const apiKey = process.env.CHATBOT_KEY
const configuration = new Configuration((

const openai = new OpenAIApi(configuration);"/v1", async(req, res)=>{
    const {prompt} = req.body;
    const completion = await openai.createCompletion({
        model: "text-davinci-003",
        prompt: prompt,
        max_tokens: 4097,

    const port = completion;

    app.listen(port, ()=> {
        console.log(`Server listening on port ${port}`)