![]()
Use Odoo to instantly have a full enterprise AI service platform. Activate Alibaba AI Tongyi Qianwen in 1 minute, complete integration and front-end chat interface development in 1 hour!
Today (2023-09-13), Alibaba Tongyi Qianwen opened its enterprise API, which can basically be applied for free — the first large AI model in China to open its interface. We applied for the Tongyi Qianwen trial very early on; the results are quite good — slightly weaker than ChatGPT intellectually, but ahead of OpenAI in content freshness and breadth. Even better, the Tongyi Wanxiang image API is also available: generate images directly from a conversation. SD (Stable Diffusion) and Midjourney are now all easily accessible.
After the interface opened, we can easily integrate and use one API to serve the entire company or industry customers. Moreover, Alibaba Cloud is very friendly, providing not only Tongyi Qianwen but also Baichuan open source, ChatGLM, Paraformer speech recognition, and MOSS open-source dialogue large model.
Tongyi Qianwen Integration Process
See the Results First - Tongyi Qianwen AI
Let's look at the results first: integration developed and completed in 1 hour, based on our existing odoo Ai service center. Fully released through odoo commercial open source.
The module is now available. Simply search for "Tongyi Qianwen" in the Odoo Global App Store or this Chinese App Store to get it.

Open Source Odoo AI Integration Module
This AI integration module is based on our free open-source AI Service Center and is listed as a paid plugin. It has the above features and, in addition to Tongyi Qianwen, also freely integrates multiple AIs for use within Odoo.
For the AI Service Center, please download from GitHub or the official Odoo App Store
Apply for an Alibaba Cloud Account
Anyone who can keep reading this article is probably a programmer. Alibaba Cloud is a must-have for everyone, so I won't elaborate—just pass. aliyun.com Just apply, and you can search on Bing for details.
Tongyi Qianwen Application Panel
Directly visit to apply for API
Apply for Tongyi Qianwen experience, https://dashscope.console.aliyun.com/overview?applyModel=qwen-v1
or search for "Tongyi Qianwen" to enter

Click to activate.

Activate DashScope Model Service, which includes various large models and can be directly integrated with Odoo's AI Service Center

Activation successful
And then it just succeeded...
Isn't it hard to imagine how simple it is? Especially for those of us who went through countless hurdles to activate OpenAI ChatGPT and Microsoft Azure AI services, it feels like a dream.

Development and integration companies and industries
The API documentation is quite complete and includes examples.
Development is very simple. With experience and frameworks from ChatGPT and Google Bard, you just need to import the SDK and modify according to the examples. Since the front-end chat, intelligent customer service, and website AI marketing are all already developed, you only need to add a Tongyi Qianwen interface.

Code example
How to integrate Alibaba Tongyi Qianwen? The official site already has simple examples in Python and Java. For high customizability, we use HTTPS POST, and then simulate a ChatGPT interface, so you can use various rich ChatGPT clients.
The relevant code is open-sourced for download on the Odoo official app store: https://apps.odoo.com
The module name is app_ai_ali

Directly integrate Tongyi Qianwen using the SDK
# coding=utf-8 # For prerequisites running the following sample, visit https://help.aliyun.com/document_detail/611472.html import dashscope from dashscope import Generation from http import HTTPStatus import json response=Generation.call( model='qwen-v1', prompt='How to stew beef brisket with tomatoes?' ) if response.status_code==HTTPStatus.OK: print(json.dumps(response.output, indent=4, ensure_ascii=False)) else: print('Code: %d, status: %s, message: %s' % (response.status_code, response.code, response
API cost - free plus metered
Free tokens: 100,000
A total of 100,000 free tokens can handle about 2,000 sentences. If you want more, just apply for a few more accounts. Using our free Odoo module, you can simultaneously use multiple AI bots for industry services.
Free quota
Model service | Model name | Free quota |
Tongyi Qianwen | qwen-v1 | Apply for TrialUpon approval, a total of 100,000 free tokens will be provided. |
qwen-plus-v1 | None |
The free quota will take effect at the next full hour after the trial application is approved. For example, if your approval is granted at 15:30, your free quota will take effect after 16:00 and will offset billing charges incurred after 16:00.
Billing Unit Price
Model service | Model name | Billing Unit Price |
Tongyi Qianwen | qwen-v1 | 0.012 yuan/1,000 tokens |
Tongyi Qianwen | qwen-plus-v1 | 0.14 yuan/1,000 tokens |
Pricing Comparison - Tongyi Qianwen vs Microsoft Azure
Let's compare the pricing of Microsoft Azure with Tongyi Qianwen. We won't discuss OpenAI because its use in China is not fully compliant.
qwen-v1 is roughly comparable to chatgpt 3.5, and qwen-plus-v1 is roughly comparable to chatgpt 4. We only compare the cheaper gpt4-8k; for chatgpt-32k, the price doubles, so calculate it yourself.
In the table below, all costs are converted to RMB (at the current exchange rate of 7.3), and the unit is per KT (per 1000 tokens).
Both charge for history, i.e., the conversation context. Basically, AI
For a regular conversation, 3 cents per time; for advanced, 2 mao per time.
| Alibaba Tongyi Qianwen | Microsoft Azure | |||
| Question | Answer | Question | Answer | |
| qwen/gpt3.5 | 0.012 | 0.012 | 0.011 | 0.015 |
| qwen-plus/gpt4-8k | 0.14 | 0.14 | 0.22 | 0.3 |
Other Free AI Applications
If you want to use Microsoft Azure for free, please go here. We also have a guide for applying for a legal ChatGPT in China, but the approval process has become more difficult now.
For Baidu ERNIE Bot application, please search 'ERNIE Bot' on this site.
Tongyi Qianwen Integration with Odoo
AI Robot Center
Unified AI Service Center manages various large language models

Enterprise AI Operation Support
Enterprises can integrate AI with existing business processes to automate sales workflows, customer service workflows, production processes, etc.
General business integration, such as sales:

AI SAAS E-commerce Service

AI Customer Service Robot
Website customer service robot with customizable processes.

AI Low-Code Platform
In conjunction with the enterprise's existing ERP, use AI to assist in the enterprise's existing business operations.
Batch AIGC functions, global multilingual processing, standardized interface support.

AI Project Collaboration Platform
Enterprises can create multi-user public channels and private channels for designated projects or topics,

AI Global E-commerce Portal
Use AI multilingual translation and our Odoo automatic site cluster construction function to achieve quickly. Because AI translation has context, continuous integration processing is much more useful than ordinary translation engines.

AI Service Billing System
Through our billing and statistics system, you can see the number of users and the amount of Tokens used by users. Combined with Odoo's e-commerce platform features, you can directly charge for AI services and provide and sell AI services in WeChat Mini Programs and Douyin/TikTok Mini Programs.

AI Service Backend
We have open-sourced the Odoo AI Service Center module, which can be downloaded for free from the Odoo Chinese App Market or the official Odoo Market.


AI WeChat and Douyin Mini Programs
Enterprise users can experience it on WeChat, Douyin, and QQ, with direct voice input.

Intelligence in conversation is subjective; the following text was generated by the AI Tongyi Qianwen API and then manually fine-tuned
Article Framework Structure
I. Introduction
- Briefly introduce the topic and purpose of this article
- Emphasize the practicality and importance of the free activation tutorial guide for Alibaba AI Tongyi Qianwen API
II. Main Body
- A. Title: Free Activation Tutorial Guide for Alibaba AI Tongyi Qianwen API
- B. Brief Description: This article will provide a detailed introduction on how to freely integrate the Alibaba AI Tongyi Qianwen large model, including related technologies such as General Wanxiang Image AI, Baichuan Open Source, and Llama, to help readers easily achieve seamless connection with Alibaba AI.
- C. Keywords: Alibaba AI Tongyi Qianwen, API tutorial guide, free integration, General Wanxiang Image AI, Baichuan Open Source, Llama, Odoo, AI Service Center
- Free Activation Tutorial Guide for Alibaba AI Tongyi Qianwen
- a. How to register an Alibaba Cloud account and obtain a free API key?
- b. How to obtain the AI Tongyi Qianwen API interface in the Alibaba Cloud console?
- c. How to integrate with Alibaba AI Tongyi Qianwen through API calls?
- Integration of large models such as General Wanxiang Image AI, Baichuan Open Source, and Llama
- a. How to obtain API interfaces for large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama?
- b. How to integrate with these large models through API calls?
- Odoo's AI Service Center
- a. How to integrate the AI Service Center in Odoo?
- b. How to implement company-wide AI services through the AI Service Center?
III. Conclusion
- Summarize the tutorial guide for free activation of Alibaba AI Tongyi Qianwen API and related technologies introduced in this article
- Emphasize the importance of practice and continuous optimization
IV. References (Optional)
- List the relevant literature or materials mentioned in this article
Introduction
Through the above detailed explanation, we can see the importance of the tutorial guide for free activation of Alibaba AI Tongyi Qianwen, the integration of large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama, and Odoo's AI Service Center. These technologies and tools can help us better implement natural language processing tasks, improve work efficiency, and enhance customer experience.
The tutorial guide for free activation of Alibaba AI Tongyi Qianwen can help us quickly build a natural language processing system, while large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama can provide more powerful computing capabilities and higher accuracy. At the same time, Odoo's AI Service Center can integrate various AI technologies, providing us with more choices and a more convenient user experience.
In short, natural language processing technologies and tools are playing an increasingly important role in today's society. We should continuously learn and master these technologies to better meet future challenges.
Tutorial for Free Activation of Tongyi Qianwen
- Free Activation Tutorial Guide for Alibaba AI Tongyi Qianwen
In this section, we will provide a detailed introduction on how to integrate the Alibaba AI Tongyi Qianwen large model for free. The specific steps are as follows:
a. How to register an Alibaba Cloud account and obtain a free API key?
First, you need to register an Alibaba Cloud account. The registration process is very simple; just fill in your basic information and verify your email. After registration, log in to the Alibaba Cloud console.
Next, you need to obtain a free API key. In the Alibaba Cloud console, find the "API Key" option, click "Create Key", and then copy the API key and secret. Please note that these keys are very important; do not disclose them to anyone.
b. How to obtain the AI Tongyi Qianwen API interface in the Alibaba Cloud console?
In the Alibaba Cloud console, find the "AI Tongyi Qianwen" service, click "API Interface", and then select the API interface you need to use. According to your needs, you can choose different API interfaces such as speech recognition, speech synthesis, and text understanding.
c. How to integrate with Alibaba AI Tongyi Qianwen through API calls?
After obtaining the API interface, you can use a programming language (such as Python, Java, etc.) to call the API and integrate with Alibaba AI Tongyi Qianwen. You need to follow the instructions in the API documentation and write corresponding code to send requests and receive responses. When calling the API, please ensure that your API key and secret are secure and reliable.
Through the above steps, you can successfully integrate the Alibaba AI Tongyi Qianwen large model for free. Next, you can use these APIs to implement various natural language processing tasks, such as speech recognition, speech synthesis, text understanding, etc.
Integration of large models such as General Wanxiang Image AI, Baichuan Open Source, and Llama
In this section, we will detail how to integrate large models such as Universal Wanxiang Image AI, Baichuan Open Source, and Llama. The specific steps are as follows:
a. How to obtain API interfaces for large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama?
Large models such as Universal Wanxiang Image AI, Baichuan Open Source, and Llama all provide API interfaces. You can obtain detailed information about the API interfaces from their official websites or open-source communities. For example, Universal Wanxiang Image AI provides a RESTful API-based interface, and you can call their API via HTTP requests. Large models such as Baichuan Open Source and Llama also provide similar API interfaces.
b. How to integrate with these large models through API calls?
After obtaining the API interfaces, you can use programming languages (such as Python, Java, etc.) to call the APIs and integrate with these large models. You need to write corresponding code to send requests and receive responses according to the instructions in the API documentation. When calling the APIs, please ensure that your API key and secret are secure and reliable.
For example, if you want to use Universal Wanxiang Image AI for image recognition, you can use the following code:
pythonCopy codeimport requests import json url = "https://api.wangyan.ai/v1/labeling" headers = {"Content-Type": "application/json"} data = { "image_url": "https://example.com/image.jpg", "labels": ["dog", "cat"] } response = requests.post(url, headers=headers, data=json.dumps(data)) result = json.loads(response.text) print(result)
The above code will send a POST request to the API interface of Universal Wanxiang Image AI, specifying the image URL and tags. The API will return the recognition results, and you can process them in your code.
Through the above steps, you can successfully integrate large models such as Universal Wanxiang Image AI, Baichuan Open Source, and Llama. Next, you can use these APIs to implement various natural language processing tasks, such as image recognition, text understanding, etc.
Odoo's AI Service Center
Odoo is an open-source enterprise management software that provides an AI Service Center, which can integrate various AI technologies such as natural language processing and machine learning. Through the AI Service Center, you can easily apply AI technologies to your business, improving work efficiency and customer experience.
The following are the steps to integrate the AI Service Center in Odoo:
a. Install the AI Service Center
First, you need to install the AI Service Center in Odoo. You can download the latest version of Odoo from the official Odoo website, and then select to install the AI Service Center during the installation process. If you have already installed Odoo, you can use the following command to install the AI Service Center:
bashCopy codesudo apt-get install odoo-ai
b. Configure the AI Service Center
After installation is complete, you need to configure the AI Service Center in Odoo. You can find the configuration options for the AI Service Center in Odoo's settings, and then configure it as prompted. You need to specify information such as the API address and API key of the AI Service Center.
c. Integrate AI technologies
After configuration is complete, you can integrate various AI technologies in Odoo. For example, you can use the natural language processing API provided by the AI Service Center to implement tasks such as text understanding and speech recognition. You can use the machine learning API provided by the AI Service Center to implement tasks such as predictive analysis and classification.
The following are the steps to integrate the natural language processing API in Odoo:
pythonCopy codefrom odoo import models, fields, api class NlpTask(models.Model): _name = 'nlp.task' _description = 'NLP Task' text = fields.Char(string='Text') result = fields.Char(string='Result') @api.model def create(self, values): # Call the AI service to process the text response = requests.post('https://api.wangyan.ai/v1/nlp', data={ 'text': values['text'] }) result = json.loads(response.text) # Save the result in the database task = self.create({ 'text': values['text'], 'result': result['result'] }) return task
The above code defines a model named NlpTask, which contains a text field and a result field. In the create method, we use the natural language processing API provided by the AI Service Center to process the text and save the result in the database.
Through the above steps, you can integrate the AI Service Center in Odoo and use various AI technologies to improve work efficiency and customer experience.
Conclusion
Through the above detailed explanation, we can see the importance of the tutorial guide for free activation of Alibaba AI Tongyi Qianwen, the integration of large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama, and Odoo's AI Service Center. These technologies and tools can help us better implement natural language processing tasks, improve work efficiency, and enhance customer experience.
The tutorial guide for free activation of Alibaba AI Tongyi Qianwen can help us quickly build a natural language processing system, while large models such as Tongyi Wanxiang Image AI, Baichuan Open Source, and Llama can provide more powerful computing capabilities and higher accuracy. At the same time, Odoo's AI Service Center can integrate various AI technologies, providing us with more choices and a more convenient user experience.
In short, natural language processing technologies and tools are playing an increasingly important role in today's society. We should continuously learn and master these technologies to better meet future challenges.
References (Optional)
Below are some references on natural language processing technologies and tools:
- Li Hang. Statistical Natural Language Processing [M]. Tsinghua University Press, 2012.
- Huang Changning, Li Jianzhong. Natural Language Processing [M]. Tsinghua University Press, 2008.
- Zhou Zhihua. Machine Learning [M]. Tsinghua University Press, 2016.
- Alibaba DAMO Academy. Tongyi Qianwen Open Platform Documentation [EB/OL]. https://help.aliyun.com/document_detail/200776.html
- Baidu AI Open Platform. Image Recognition API Documentation [EB/OL]. https://ai.baidu.com/docs#/image/Describe
- Megvii Technology. Image Recognition API Documentation [EB/OL]. https://www.megvii.com/docs/api
- DAMO Academy. LAMA Open Platform Documentation [EB/OL]. https://help.aliyun.com/document_detail/200777.html