Create

POST: https://api.oasis.ai/enterprise/create

Asynchronously queues an inference request.


Request body

Text-to-Image

{
 "type": "textToImage",
 "model": "fluxDev",
 "args": {
    "nsfw": false,
    "prompt": "space cat on the moon",
    "seed": 123456,
    "numInferenceSteps": 15,
    "guidanceScale": 6.0,
    "executionContext": "create"
 }   
}

Text-to-Text
{
    "type": "textToText",
    "model": "llama8b",
    "args": {
        "input": [
            {
                "role": "system",
                "content": "You are an intelligent and helpful assistant."
            },
            {
                "role": "user",
                "content": "Hello!"
            }
        ]
    }
}

Request Response

{ "id": "REQUEST_ID" }

Last updated