midjourney
Neural Network
MidJourney is a neural network designed for image generation based on text requests. It is a tool that helps create unique visual projects for business or creativity. MidJourney in English makes the learning process simple and convenient.
0,05 $ / 26 000 CAPS
Response Cost (in Relax mode)0,1 $ / 52 000 CAPS
Response Cost (in Fast mode)0,21 $ / 104 000 CAPS
Response Cost (in Turbo mode)Providers midjourneyOn Bothub, you can select your own providers for requests. If you haven't made a selection, we will automatically find suitable providers who can handle the size and parameters of your request.
Code example and API for midjourneyWe offer full access to the OpenAI API through our service. All our endpoints fully comply with OpenAI endpoints and can be used both with plugins and when developing your own software through the SDK.Create API key
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: '<your bothub access token>',
baseURL: 'https://bothub.chat/api/v2/openai/v1'
});
async function main() {
const response = await openai.images.generate({
model: 'midjourney',
prompt: 'a white siamese cat',
n: 1,
size: '1024x1024'
});
const imageUrl = response.data[0].url;
}
main();